<html lang="en"><head>
    <title>你的精神年龄和心理年龄分别是几岁？</title>
    <meta name="description" content="趣测 - 提供丰富的测评内容， 包含心理测试、爱情测试、性格测试、趣味测试、星座测试等">
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no,shrink-to-fit=no">
    <meta itemprop="name" content="你的精神年龄和心理年龄分别是几岁？--【超准】" id="qTitle">
    <meta itemprop="image" content="http://uploads-admin.cdn.woquhudong.cn/quce/1535534073ZQOA6.png" id="qImg">
    <meta name="keywords" content="你的精神年龄和心理年龄分别是几岁？">
    <script src="http://pingjs.qq.com/h5/stats.js?v2.0.4" name="MTAH5" sid="500148432" cid="500492808"></script><script>
        var fromMp = false;
        var res_path = 'http://quce.cdn.woquhudong.cn';
        var recordUrl = "/index.php/wetest/entry/addorupdaterecord";
        var gameData = {"id":"6466","title":"\u4f60\u7684\u7cbe\u795e\u5e74\u9f84\u548c\u5fc3\u7406\u5e74\u9f84\u5206\u522b\u662f\u51e0\u5c81\uff1f","logo":"quce\/15355999777aDIp.png","desc":"\u5e74\u8f7b\u4e0d\u4ec5\u4ec5\u8bf4\u7684\u662f\u5bb9\u8c8c\uff0c\u8fd8\u6709\u5fc3\u6001\uff0c\u5c3d\u7ba1\u6709\u4e9b\u4eba\u7684\u771f\u5b9e\u5e74\u9f84\u5df2\u7ecf\u7b97\u5f97\u4e0a\u4e00\u4e2a\u4e2d\u5e74\u4eba\u4e86\uff0c\u4f46\u662f\u5176\u5b9e\u4ed6\u7684\u5fc3\u91cc\u5e74\u9f84\u624d\u5341\u51e0\u5c81\uff0c\u60f3\u77e5\u9053\u4f60\u7684\u7cbe\u795e\u5e74\u9f84\u548c\u5fc3\u7406\u5e74\u9f84\u4e00\u81f4\u5417\uff1f\u5feb\u6765\u6d4b\u4e00\u4e0b\u5427~","question":"[{\"img\":\"quce\/1535531112pRjjG.jpg\",\"question\":\"\u4e0b\u56fe\u4e2d\u4f60\u6700\u5148\u770b\u5230\u7684\u662f\uff1f\",\"audio\":\"\",\"answer\":{\"a\":{\"title\":\"\u6811\",\"weight\":\"3\",\"img\":\"\"},\"b\":{\"title\":\"\u4eba\u8138\",\"weight\":\"7\",\"img\":\"\"}},\"weight\":\"1\",\"merge\":false},{\"img\":\"quce\/1535531491AyBJV.jpg\",\"question\":\"\u4e0b\u56fe\u4e2d\u5de6\u53f3\u4e24\u4e2a\u6708\u4eae\u76f8\u540c\u5417\uff1f\",\"audio\":\"\",\"answer\":{\"a\":{\"title\":\"\u76f8\u540c\",\"weight\":\"3\",\"img\":\"\"},\"b\":{\"title\":\"\u4e0d\u76f8\u540c\",\"weight\":\"7\",\"img\":\"\"}},\"weight\":\"1\",\"merge\":false},{\"img\":\"quce\/15355315411Ute6.jpg\",\"question\":\"\u56fe\u4e2d\u8fd9\u4ef6\u8863\u670d\u4e0a\u6709\u51e0\u4e2a\u6d1e\uff1f\",\"audio\":\"\",\"answer\":{\"a\":{\"title\":\"2\u4e2a\",\"weight\":\"7\",\"img\":\"\"},\"b\":{\"title\":\"4\u4e2a\",\"weight\":\"3\",\"img\":\"\"},\"c\":{\"title\":\"6\u4e2a\",\"weight\":\"5\",\"img\":\"\"},\"d\":{\"title\":\"8\u4e2a\",\"weight\":\"1\",\"img\":\"\"}},\"weight\":\"1\",\"merge\":false},{\"img\":\"\",\"question\":\"\u4ee5\u4e0b\u6700\u7b26\u5408\u8fd9\u6bb5\u97f3\u4e50\u7684\u989c\u8272\u662f\uff1f\",\"audio\":\"quce\/1535531631z2bXc.mp3\",\"answer\":{\"a\":{\"title\":\"\",\"weight\":\"5\",\"img\":\"quce\/1535531727TzDEX.jpg\"},\"b\":{\"title\":\"\",\"weight\":\"1\",\"img\":\"quce\/1535531746kKzLe.jpg\"},\"c\":{\"title\":\"\",\"weight\":\"7\",\"img\":\"quce\/1535531836Maq79.jpg\"},\"d\":{\"title\":\"\",\"weight\":\"3\",\"img\":\"quce\/1535531977uIm36.jpg\"}},\"weight\":\"1\",\"merge\":false},{\"img\":\"\",\"question\":\"\u4f60\u5fc3\u4e2d\u6700\u7b26\u5408\u8fd9\u6bb5\u97f3\u4e50\u7684\u573a\u666f\u662f\uff1f\",\"audio\":\"quce\/1535532322shn79.mp3\",\"answer\":{\"a\":{\"title\":\"\",\"weight\":\"5\",\"img\":\"quce\/1535532006OTDc1.jpg\"},\"b\":{\"title\":\"\",\"weight\":\"7\",\"img\":\"quce\/15355321904G6fu.jpg\"},\"c\":{\"title\":\"\",\"weight\":\"3\",\"img\":\"quce\/1535532204Sysr9.jpg\"},\"d\":{\"title\":\"\",\"weight\":\"1\",\"img\":\"quce\/1535532220EEvdR.jpg\"}},\"weight\":\"1\",\"merge\":false},{\"img\":\"\",\"question\":\"\u4f60\u5fc3\u76ee\u4e2d\u6700\u7b26\u5408\u8fd9\u6bb5\u97f3\u4e50\u7684\u5b63\u8282\u662f\uff1f\",\"audio\":\"quce\/1535532262hs1CY.mp3\",\"answer\":{\"a\":{\"title\":\"\u6625\",\"weight\":\"1\",\"img\":\"\"},\"b\":{\"title\":\"\u590f\",\"weight\":\"3\",\"img\":\"\"},\"c\":{\"title\":\"\u79cb\",\"weight\":\"7\",\"img\":\"\"},\"d\":{\"title\":\"\u51ac\",\"weight\":\"5\",\"img\":\"\"}},\"weight\":\"1\",\"merge\":false},{\"img\":\"\",\"question\":\"\u4e0b\u5217\u56fe\u7247\u4e2d\u7684\u773c\u795e\u60c5\u7eea\uff0c\u4f60\u8ba4\u4e3a\u54ea\u4e2a\u548c\u97f3\u4e50\u6700\u7b26\u5408\uff1f\",\"audio\":\"quce\/15355323479nanq.mp3\",\"answer\":{\"a\":{\"title\":\"\",\"weight\":\"3\",\"img\":\"quce\/15355323664oBkR.jpg\"},\"b\":{\"title\":\"\",\"weight\":\"1\",\"img\":\"quce\/153553238037DLH.jpg\"},\"c\":{\"title\":\"\",\"weight\":\"5\",\"img\":\"quce\/1535532397OiJRt.jpg\"},\"d\":{\"title\":\"\",\"weight\":\"7\",\"img\":\"quce\/1535532415W6jwU.jpg\"}},\"weight\":\"1\",\"merge\":false}]","original":"0","type":"2","cid":"6","img":"quce\/1535534073ZQOA6.png","tpl_id":"10","is_game":"0","share_url":"","view":"5653500","like_num":"0","utime":"1535860800","subscribe":"16","new_plan":"0","status":"1","special_result":"1","need_login":"0","pid":"0"};
        var adminPath = 'http://uploads-admin.cdn.woquhudong.cn';
        var url = "/index.php/wetest/entry/getresulttj/gid/";
        var namepath = "/index.php/wetest/entry/getnameimage/name/";
        var resultServer = "/index.php/wetest/entry/getresult";
        var likeServer = "/index.php/wetest/entry/addlike";
        var selectOption = [];

        var StatusUrl = "/index.php/wetest/entry/errortj";
        var resultPage = "/index.php/wetest/entry/result";
        var timeOutEvent=0;

        var isLowVersion = false;
        var isAndroid = navigator.userAgent.toLowerCase().match(/android/i) ? true : false;
        var isWeixin = navigator.userAgent.toLowerCase().match(/MicroMessenger/i) ? true : false;
        var version = navigator.userAgent.toLowerCase().match(/MicroMessenger\/([\d\.]+)/i);
        if((isAndroid && isWeixin && version < 'micromessenger/6.3.23') || (isAndroid && isWeixin && !version)) {
            isLowVersion = true;
        }
        var attentioncid;
        var qrcodelink;

        var longTapServer = "/index.php/wetest/entry/inclongtap";
        var uuid = '015cea34222717f2';
        var acid = 0?'0':0;
        var progressUrl = "/index.php/wetest/statics/playprogress";
        var recordProgress = "0";
        //    var newresultPage = "http://m.quceaiqing.com"+"/index.php/wetest/entry/newquizresult/id/";
        var setnewcookie = "http://m.quceaiqing.com"+"/index.php/wetest/entry/setattentioncookie/src/401/id/";
        var sourceId = "401";
        //    var newresultPage = "/index.php/wetest/entry/newquizresult/id/";
        //    var setnewcookie = "/index.php/wetest/entry/setattentioncookie/src/401/id/";
    </script>
    <link href="http://quce.cdn.woquhudong.cn/entry/css/v10.css?v=1.77" rel="stylesheet">
</head>
<body ontouchstart="">
<div class="full_wrapper">
    <div class="main">
        <div id="load_mask" style="display: none;">
            <div class="main_area">
                <div id="loading_item_container">
                    <span id="loading_hint">正在进入测试</span>
                    <img style="height: 26px;" src="http://quce.cdn.woquhudong.cn/entry/img/v8/LoadingDots.gif">
                </div>
            </div>
            <div id="xiaoice_account_hint"><span></span></div>
        </div>
        <div class="xb_pageCont xb_flex">
            <div class="page_body xb_head_padding" id="xb_page_body">
                <div id="xb_chat_content">
                    <div class="xb_conversation_item">
                        <div class="xb_conv_wrap_left">
                            <img class="xb_avatar_left" src="http://quce.cdn.woquhudong.cn/entry/img/v8/quce.png">
                            <div class="xb_tri_left"></div>
                            <div class="xb_tri_left1"></div>
                            <div class="xb_conv_left  ">
                                年轻不仅仅说的是容貌，还有心态，尽管有些人的真实年龄已经算得上一个中年人了，但是其实他的心里年龄才十几岁，想知道你的精神年龄和心理年龄一致吗？快来测一下吧~
                            </div>
                        </div>
                    </div>

                    <div class="xb_conversation_item">
                        <div class="xb_conv_wrap_left">
                            <img class="xb_avatar_left" src="http://quce.cdn.woquhudong.cn/entry/img/v8/quce.png">
                            <div class="xb_tri_left"></div><div class="xb_tri_left1"></div>
                            <div class="xb_conv_left  xb_conv_left_img img-longtap-fix">
                                <img src="http://uploads-admin.cdn.woquhudong.cn/quce/15355999777aDIp.png?imageView2/2/w/480" class="xb_sendimg">
                                <img src="http://uploads-admin.cdn.woquhudong.cn/quce/15355999777aDIp.png?imageView2/2/w/480" class="xb_sendimg_opcity">
                            </div>
                        </div>
                    </div>

                    <div class="xb_conversation_item">
                        <div class="xb_conv_wrap_right">
                            <img class="xb_avatar_right" src="http://quce.cdn.woquhudong.cn/Common/menu/img/usericon.png">
                            <div class="xb_tri_right"></div>
                            <div class="xb_tri_right1"></div>
                            <div class="xb_conv_right">开始</div>
                        </div>
                    </div>

                    <div class="question_indexes_box">
                        <p class="question_indexes">第1题/共7题</p>
                    </div>

                    <div class="xb_conversation_item">
                        <div class="xb_conv_wrap_left">
                            <img class="xb_avatar_left" src="http://quce.cdn.woquhudong.cn/entry/img/v8/quce.png">
                            <div class="xb_tri_left"></div>
                            <div class="xb_tri_left1"></div>
                            <div class="xb_conv_left  ">
                                下图中你最先看到的是？
                            </div>
                        </div>
                    </div>

                    <div class="xb_conversation_item">
                        <div class="xb_conv_wrap_left">
                            <img class="xb_avatar_left" src="http://quce.cdn.woquhudong.cn/entry/img/v8/quce.png">
                            <div class="xb_tri_left"></div><div class="xb_tri_left1"></div>
                            <div class="xb_conv_left  xb_conv_left_img img-longtap-fix">
                                <img src="http://uploads-admin.cdn.woquhudong.cn/quce/1535531112pRjjG.jpg?imageView2/2/w/480" class="xb_sendimg">
                                <img src="http://uploads-admin.cdn.woquhudong.cn/quce/1535531112pRjjG.jpg?imageView2/2/w/480" class="xb_sendimg_opcity">
                            </div>
                        </div>
                    </div>
                    <div class="question_options_box"><div class="question_options_container"><div class="question_options_desc_box">
                                <div class="options_question_item options_question_checked" data-id="a" data-index="0" data-value="3" onclick="checkoption(this,'3')">
                                    <span>a.树</span>
                                    <img src="http://quce.cdn.woquhudong.cn/entry/img/v10/unselect.png" class="options_question_icon options_question_uncheck">
                                    <img src="http://quce.cdn.woquhudong.cn/entry/img/v10/select.png" class="options_question_icon options_question_select">
                                </div>

                                <div class="options_question_item options_question_checked options_question_item_select" data-id="b" data-index="0" data-value="7" onclick="checkoption(this,'7')">
                                    <span>b.人脸</span>
                                    <img src="http://quce.cdn.woquhudong.cn/entry/img/v10/unselect.png" class="options_question_icon options_question_uncheck">
                                    <img src="http://quce.cdn.woquhudong.cn/entry/img/v10/select.png" class="options_question_icon options_question_select">
                                </div>
                            </div></div></div>
                    <div class="xb_conversation_item">
                        <div class="xb_conv_wrap_right">
                            <img class="xb_avatar_right" src="http://quce.cdn.woquhudong.cn/Common/menu/img/usericon.png">
                            <div class="xb_tri_right"></div>
                            <div class="xb_tri_right1"></div>
                            <div class="xb_conv_right">b.人脸</div>
                        </div>
                    </div>

                    <div class="question_indexes_box">
                        <p class="question_indexes">第2题/共7题</p>
                    </div>

                    <div class="xb_conversation_item">
                        <div class="xb_conv_wrap_left">
                            <img class="xb_avatar_left" src="http://quce.cdn.woquhudong.cn/entry/img/v8/quce.png">
                            <div class="xb_tri_left"></div>
                            <div class="xb_tri_left1"></div>
                            <div class="xb_conv_left  ">
                                下图中左右两个月亮相同吗？
                            </div>
                        </div>
                    </div>

                    <div class="xb_conversation_item">
                        <div class="xb_conv_wrap_left">
                            <img class="xb_avatar_left" src="http://quce.cdn.woquhudong.cn/entry/img/v8/quce.png">
                            <div class="xb_tri_left"></div><div class="xb_tri_left1"></div>
                            <div class="xb_conv_left  xb_conv_left_img img-longtap-fix">
                                <img src="http://uploads-admin.cdn.woquhudong.cn/quce/1535531491AyBJV.jpg?imageView2/2/w/480" class="xb_sendimg">
                                <img src="http://uploads-admin.cdn.woquhudong.cn/quce/1535531491AyBJV.jpg?imageView2/2/w/480" class="xb_sendimg_opcity">
                            </div>
                        </div>
                    </div>
                    <div class="question_options_box"><div class="question_options_container"><div class="question_options_desc_box">
                                <div class="options_question_item options_question_checked options_question_item_select" data-id="a" data-index="1" data-value="3" onclick="checkoption(this,'3')">
                                    <span>a.相同</span>
                                    <img src="http://quce.cdn.woquhudong.cn/entry/img/v10/unselect.png" class="options_question_icon options_question_uncheck">
                                    <img src="http://quce.cdn.woquhudong.cn/entry/img/v10/select.png" class="options_question_icon options_question_select">
                                </div>

                                <div class="options_question_item options_question_checked" data-id="b" data-index="1" data-value="7" onclick="checkoption(this,'7')">
                                    <span>b.不相同</span>
                                    <img src="http://quce.cdn.woquhudong.cn/entry/img/v10/unselect.png" class="options_question_icon options_question_uncheck">
                                    <img src="http://quce.cdn.woquhudong.cn/entry/img/v10/select.png" class="options_question_icon options_question_select">
                                </div>
                            </div></div></div>
                    <!--<div class="xb_btn_container options_question_prev">-->
                    <!--<a data-id="b" data-index="1" data-onclick="goPrevQuestion(this)" href="javascript:void(0)" class="btn_basic wechatGreen text_holder">重新回答上一题</a>-->
                    <!--</div>-->
                    <div class="options_question_prev hideprevbtn options_question_checked" data-id="b" data-index="1" onclick="goPrevQuestion(this)">
                        <span>重新回答上一题&gt;</span>
                    </div>

                    <div class="xb_conversation_item">
                        <div class="xb_conv_wrap_right">
                            <img class="xb_avatar_right" src="http://quce.cdn.woquhudong.cn/Common/menu/img/usericon.png">
                            <div class="xb_tri_right"></div>
                            <div class="xb_tri_right1"></div>
                            <div class="xb_conv_right">a.相同</div>
                        </div>
                    </div>

                    <div class="question_indexes_box">
                        <p class="question_indexes">第3题/共7题</p>
                    </div>

                    <div class="xb_conversation_item">
                        <div class="xb_conv_wrap_left">
                            <img class="xb_avatar_left" src="http://quce.cdn.woquhudong.cn/entry/img/v8/quce.png">
                            <div class="xb_tri_left"></div>
                            <div class="xb_tri_left1"></div>
                            <div class="xb_conv_left  ">
                                图中这件衣服上有几个洞？
                            </div>
                        </div>
                    </div>

                    <div class="xb_conversation_item">
                        <div class="xb_conv_wrap_left">
                            <img class="xb_avatar_left" src="http://quce.cdn.woquhudong.cn/entry/img/v8/quce.png">
                            <div class="xb_tri_left"></div><div class="xb_tri_left1"></div>
                            <div class="xb_conv_left  xb_conv_left_img img-longtap-fix">
                                <img src="http://uploads-admin.cdn.woquhudong.cn/quce/15355315411Ute6.jpg?imageView2/2/w/480" class="xb_sendimg">
                                <img src="http://uploads-admin.cdn.woquhudong.cn/quce/15355315411Ute6.jpg?imageView2/2/w/480" class="xb_sendimg_opcity">
                            </div>
                        </div>
                    </div>
                    <div class="question_options_box"><div class="question_options_container"><div class="question_options_desc_box">
                                <div class="options_question_item options_question_checked" data-id="a" data-index="2" data-value="7" onclick="checkoption(this,'7')">
                                    <span>a.2个</span>
                                    <img src="http://quce.cdn.woquhudong.cn/entry/img/v10/unselect.png" class="options_question_icon options_question_uncheck">
                                    <img src="http://quce.cdn.woquhudong.cn/entry/img/v10/select.png" class="options_question_icon options_question_select">
                                </div>

                                <div class="options_question_item options_question_checked" data-id="b" data-index="2" data-value="3" onclick="checkoption(this,'3')">
                                    <span>b.4个</span>
                                    <img src="http://quce.cdn.woquhudong.cn/entry/img/v10/unselect.png" class="options_question_icon options_question_uncheck">
                                    <img src="http://quce.cdn.woquhudong.cn/entry/img/v10/select.png" class="options_question_icon options_question_select">
                                </div>

                                <div class="options_question_item options_question_checked" data-id="c" data-index="2" data-value="5" onclick="checkoption(this,'5')">
                                    <span>c.6个</span>
                                    <img src="http://quce.cdn.woquhudong.cn/entry/img/v10/unselect.png" class="options_question_icon options_question_uncheck">
                                    <img src="http://quce.cdn.woquhudong.cn/entry/img/v10/select.png" class="options_question_icon options_question_select">
                                </div>

                                <div class="options_question_item options_question_checked options_question_item_select" data-id="d" data-index="2" data-value="1" onclick="checkoption(this,'1')">
                                    <span>d.8个</span>
                                    <img src="http://quce.cdn.woquhudong.cn/entry/img/v10/unselect.png" class="options_question_icon options_question_uncheck">
                                    <img src="http://quce.cdn.woquhudong.cn/entry/img/v10/select.png" class="options_question_icon options_question_select">
                                </div>
                            </div></div></div>
                    <!--<div class="xb_btn_container options_question_prev">-->
                    <!--<a data-id="d" data-index="2" data-onclick="goPrevQuestion(this)" href="javascript:void(0)" class="btn_basic wechatGreen text_holder">重新回答上一题</a>-->
                    <!--</div>-->
                    <div class="options_question_prev hideprevbtn options_question_checked" data-id="d" data-index="2" onclick="goPrevQuestion(this)">
                        <span>重新回答上一题&gt;</span>
                    </div>

                    <div class="xb_conversation_item">
                        <div class="xb_conv_wrap_right">
                            <img class="xb_avatar_right" src="http://quce.cdn.woquhudong.cn/Common/menu/img/usericon.png">
                            <div class="xb_tri_right"></div>
                            <div class="xb_tri_right1"></div>
                            <div class="xb_conv_right">d.8个</div>
                        </div>
                    </div>

                    <div class="question_indexes_box">
                        <p class="question_indexes">第4题/共7题</p>
                    </div>

                    <div class="xb_conversation_item">
                        <div class="xb_conv_wrap_left">
                            <img class="xb_avatar_left" src="http://quce.cdn.woquhudong.cn/entry/img/v8/quce.png">
                            <div class="xb_tri_left"></div>
                            <div class="xb_tri_left1"></div>
                            <div class="xb_conv_left  ">
                                以下最符合这段音乐的颜色是？
                            </div>
                        </div>
                    </div>

                    <div class="xb_conversation_item">
                        <div class="xb_conv_wrap_left">
                            <img class="xb_avatar_left" src="http://quce.cdn.woquhudong.cn/entry/img/v8/quce.png">
                            <div class="xb_tri_left"></div>
                            <div class="xb_tri_left1"></div>
                            <div class="xb_conv_left audio_pause" onclick="playAudio(this, 'http://uploads-admin.cdn.woquhudong.cn/quce/1535531631z2bXc.mp3');">
                <span class="audio_icon_box ">
                    <img src="http://quce.cdn.woquhudong.cn/entry/img/v8/01.png" class="audio_ani_btn audio_ani_normal">
                    <img src="http://quce.cdn.woquhudong.cn/entry/img/v8/02.gif" class="audio_ani_btn audio_ani ">
                    <span class="audio_timer" id="" style="display: none;">11"</span>
                </span>
                                <span class="audio_reddot"></span>
                            </div>

                        </div>
                    </div>
                    <div class="question_options_box"><div class="question_options_container"><div class="question_options_image_box">
                                <div class="option_image_item" onclick="showImage('http://uploads-admin.cdn.woquhudong.cn/quce/1535531727TzDEX.jpg')" style="background-image: url(http://uploads-admin.cdn.woquhudong.cn/quce/1535531727TzDEX.jpg)">
                                    <img src="http://quce.cdn.woquhudong.cn/entry/img/v10/unselect.png" style="display: block;width: 100%;opacity: 0;">
                                    <span class="options_key">a</span>
                                </div>

                                <div class="option_image_item" onclick="showImage('http://uploads-admin.cdn.woquhudong.cn/quce/1535531746kKzLe.jpg')" style="background-image: url(http://uploads-admin.cdn.woquhudong.cn/quce/1535531746kKzLe.jpg)">
                                    <img src="http://quce.cdn.woquhudong.cn/entry/img/v10/unselect.png" style="display: block;width: 100%;opacity: 0;">
                                    <span class="options_key">b</span>
                                </div>

                                <div class="option_image_item" onclick="showImage('http://uploads-admin.cdn.woquhudong.cn/quce/1535531836Maq79.jpg')" style="background-image: url(http://uploads-admin.cdn.woquhudong.cn/quce/1535531836Maq79.jpg)">
                                    <img src="http://quce.cdn.woquhudong.cn/entry/img/v10/unselect.png" style="display: block;width: 100%;opacity: 0;">
                                    <span class="options_key">c</span>
                                </div>

                                <div class="option_image_item" onclick="showImage('http://uploads-admin.cdn.woquhudong.cn/quce/1535531977uIm36.jpg')" style="background-image: url(http://uploads-admin.cdn.woquhudong.cn/quce/1535531977uIm36.jpg)">
                                    <img src="http://quce.cdn.woquhudong.cn/entry/img/v10/unselect.png" style="display: block;width: 100%;opacity: 0;">
                                    <span class="options_key">d</span>
                                </div>
                            </div><div class="question_options_desc_box">
                                <div class="options_question_item options_question_checked" data-id="a" data-index="3" data-value="5" onclick="checkoption(this,'5')">
                                    <span>a.</span>
                                    <img src="http://quce.cdn.woquhudong.cn/entry/img/v10/unselect.png" class="options_question_icon options_question_uncheck">
                                    <img src="http://quce.cdn.woquhudong.cn/entry/img/v10/select.png" class="options_question_icon options_question_select">
                                </div>

                                <div class="options_question_item options_question_checked options_question_item_select" data-id="b" data-index="3" data-value="1" onclick="checkoption(this,'1')">
                                    <span>b.</span>
                                    <img src="http://quce.cdn.woquhudong.cn/entry/img/v10/unselect.png" class="options_question_icon options_question_uncheck">
                                    <img src="http://quce.cdn.woquhudong.cn/entry/img/v10/select.png" class="options_question_icon options_question_select">
                                </div>

                                <div class="options_question_item options_question_checked" data-id="c" data-index="3" data-value="7" onclick="checkoption(this,'7')">
                                    <span>c.</span>
                                    <img src="http://quce.cdn.woquhudong.cn/entry/img/v10/unselect.png" class="options_question_icon options_question_uncheck">
                                    <img src="http://quce.cdn.woquhudong.cn/entry/img/v10/select.png" class="options_question_icon options_question_select">
                                </div>

                                <div class="options_question_item options_question_checked" data-id="d" data-index="3" data-value="3" onclick="checkoption(this,'3')">
                                    <span>d.</span>
                                    <img src="http://quce.cdn.woquhudong.cn/entry/img/v10/unselect.png" class="options_question_icon options_question_uncheck">
                                    <img src="http://quce.cdn.woquhudong.cn/entry/img/v10/select.png" class="options_question_icon options_question_select">
                                </div>
                            </div></div></div>
                    <!--<div class="xb_btn_container options_question_prev">-->
                    <!--<a data-id="d" data-index="3" data-onclick="goPrevQuestion(this)" href="javascript:void(0)" class="btn_basic wechatGreen text_holder">重新回答上一题</a>-->
                    <!--</div>-->
                    <div class="options_question_prev hideprevbtn options_question_checked" data-id="d" data-index="3" onclick="goPrevQuestion(this)">
                        <span>重新回答上一题&gt;</span>
                    </div>

                    <div class="xb_conversation_item">
                        <div class="xb_conv_wrap_right">
                            <img class="xb_avatar_right" src="http://quce.cdn.woquhudong.cn/Common/menu/img/usericon.png">
                            <div class="xb_tri_right"></div>
                            <div class="xb_tri_right1"></div>
                            <div class="xb_conv_right">b.</div>
                        </div>
                    </div>

                    <div class="question_indexes_box">
                        <p class="question_indexes">第5题/共7题</p>
                    </div>

                    <div class="xb_conversation_item">
                        <div class="xb_conv_wrap_left">
                            <img class="xb_avatar_left" src="http://quce.cdn.woquhudong.cn/entry/img/v8/quce.png">
                            <div class="xb_tri_left"></div>
                            <div class="xb_tri_left1"></div>
                            <div class="xb_conv_left  ">
                                你心中最符合这段音乐的场景是？
                            </div>
                        </div>
                    </div>

                    <div class="xb_conversation_item">
                        <div class="xb_conv_wrap_left">
                            <img class="xb_avatar_left" src="http://quce.cdn.woquhudong.cn/entry/img/v8/quce.png">
                            <div class="xb_tri_left"></div>
                            <div class="xb_tri_left1"></div>
                            <div class="xb_conv_left audio_pause" onclick="playAudio(this, 'http://uploads-admin.cdn.woquhudong.cn/quce/1535532322shn79.mp3');">
                <span class="audio_icon_box ">
                    <img src="http://quce.cdn.woquhudong.cn/entry/img/v8/01.png" class="audio_ani_btn audio_ani_normal">
                    <img src="http://quce.cdn.woquhudong.cn/entry/img/v8/02.gif" class="audio_ani_btn audio_ani ">
                    <span class="audio_timer" id="" style="display: none;">11"</span>
                </span>
                                <span class="audio_reddot"></span>
                            </div>

                        </div>
                    </div>
                    <div class="question_options_box"><div class="question_options_container"><div class="question_options_image_box">
                                <div class="option_image_item" onclick="showImage('http://uploads-admin.cdn.woquhudong.cn/quce/1535532006OTDc1.jpg')" style="background-image: url(http://uploads-admin.cdn.woquhudong.cn/quce/1535532006OTDc1.jpg)">
                                    <img src="http://quce.cdn.woquhudong.cn/entry/img/v10/unselect.png" style="display: block;width: 100%;opacity: 0;">
                                    <span class="options_key">a</span>
                                </div>

                                <div class="option_image_item" onclick="showImage('http://uploads-admin.cdn.woquhudong.cn/quce/15355321904G6fu.jpg')" style="background-image: url(http://uploads-admin.cdn.woquhudong.cn/quce/15355321904G6fu.jpg)">
                                    <img src="http://quce.cdn.woquhudong.cn/entry/img/v10/unselect.png" style="display: block;width: 100%;opacity: 0;">
                                    <span class="options_key">b</span>
                                </div>

                                <div class="option_image_item" onclick="showImage('http://uploads-admin.cdn.woquhudong.cn/quce/1535532204Sysr9.jpg')" style="background-image: url(http://uploads-admin.cdn.woquhudong.cn/quce/1535532204Sysr9.jpg)">
                                    <img src="http://quce.cdn.woquhudong.cn/entry/img/v10/unselect.png" style="display: block;width: 100%;opacity: 0;">
                                    <span class="options_key">c</span>
                                </div>

                                <div class="option_image_item" onclick="showImage('http://uploads-admin.cdn.woquhudong.cn/quce/1535532220EEvdR.jpg')" style="background-image: url(http://uploads-admin.cdn.woquhudong.cn/quce/1535532220EEvdR.jpg)">
                                    <img src="http://quce.cdn.woquhudong.cn/entry/img/v10/unselect.png" style="display: block;width: 100%;opacity: 0;">
                                    <span class="options_key">d</span>
                                </div>
                            </div><div class="question_options_desc_box">
                                <div class="options_question_item options_question_checked" data-id="a" data-index="4" data-value="5" onclick="checkoption(this,'5')">
                                    <span>a.</span>
                                    <img src="http://quce.cdn.woquhudong.cn/entry/img/v10/unselect.png" class="options_question_icon options_question_uncheck">
                                    <img src="http://quce.cdn.woquhudong.cn/entry/img/v10/select.png" class="options_question_icon options_question_select">
                                </div>

                                <div class="options_question_item options_question_checked options_question_item_select" data-id="b" data-index="4" data-value="7" onclick="checkoption(this,'7')">
                                    <span>b.</span>
                                    <img src="http://quce.cdn.woquhudong.cn/entry/img/v10/unselect.png" class="options_question_icon options_question_uncheck">
                                    <img src="http://quce.cdn.woquhudong.cn/entry/img/v10/select.png" class="options_question_icon options_question_select">
                                </div>

                                <div class="options_question_item options_question_checked" data-id="c" data-index="4" data-value="3" onclick="checkoption(this,'3')">
                                    <span>c.</span>
                                    <img src="http://quce.cdn.woquhudong.cn/entry/img/v10/unselect.png" class="options_question_icon options_question_uncheck">
                                    <img src="http://quce.cdn.woquhudong.cn/entry/img/v10/select.png" class="options_question_icon options_question_select">
                                </div>

                                <div class="options_question_item options_question_checked" data-id="d" data-index="4" data-value="1" onclick="checkoption(this,'1')">
                                    <span>d.</span>
                                    <img src="http://quce.cdn.woquhudong.cn/entry/img/v10/unselect.png" class="options_question_icon options_question_uncheck">
                                    <img src="http://quce.cdn.woquhudong.cn/entry/img/v10/select.png" class="options_question_icon options_question_select">
                                </div>
                            </div></div></div>
                    <!--<div class="xb_btn_container options_question_prev">-->
                    <!--<a data-id="d" data-index="4" data-onclick="goPrevQuestion(this)" href="javascript:void(0)" class="btn_basic wechatGreen text_holder">重新回答上一题</a>-->
                    <!--</div>-->
                    <div class="options_question_prev hideprevbtn options_question_checked" data-id="d" data-index="4" onclick="goPrevQuestion(this)">
                        <span>重新回答上一题&gt;</span>
                    </div>

                    <div class="xb_conversation_item">
                        <div class="xb_conv_wrap_right">
                            <img class="xb_avatar_right" src="http://quce.cdn.woquhudong.cn/Common/menu/img/usericon.png">
                            <div class="xb_tri_right"></div>
                            <div class="xb_tri_right1"></div>
                            <div class="xb_conv_right">b.</div>
                        </div>
                    </div>

                    <div class="question_indexes_box">
                        <p class="question_indexes">第6题/共7题</p>
                    </div>

                    <div class="xb_conversation_item">
                        <div class="xb_conv_wrap_left">
                            <img class="xb_avatar_left" src="http://quce.cdn.woquhudong.cn/entry/img/v8/quce.png">
                            <div class="xb_tri_left"></div>
                            <div class="xb_tri_left1"></div>
                            <div class="xb_conv_left  ">
                                你心目中最符合这段音乐的季节是？
                            </div>
                        </div>
                    </div>

                    <div class="xb_conversation_item">
                        <div class="xb_conv_wrap_left">
                            <img class="xb_avatar_left" src="http://quce.cdn.woquhudong.cn/entry/img/v8/quce.png">
                            <div class="xb_tri_left"></div>
                            <div class="xb_tri_left1"></div>
                            <div class="xb_conv_left audio_pause" onclick="playAudio(this, 'http://uploads-admin.cdn.woquhudong.cn/quce/1535532262hs1CY.mp3');">
                <span class="audio_icon_box ">
                    <img src="http://quce.cdn.woquhudong.cn/entry/img/v8/01.png" class="audio_ani_btn audio_ani_normal">
                    <img src="http://quce.cdn.woquhudong.cn/entry/img/v8/02.gif" class="audio_ani_btn audio_ani ">
                    <span class="audio_timer" id="" style="display: none;">11"</span>
                </span>
                                <span class="audio_reddot"></span>
                            </div>

                        </div>
                    </div>
                    <div class="question_options_box"><div class="question_options_container"><div class="question_options_desc_box">
                                <div class="options_question_item options_question_checked options_question_item_select" data-id="a" data-index="5" data-value="1" onclick="checkoption(this,'1')">
                                    <span>a.春</span>
                                    <img src="http://quce.cdn.woquhudong.cn/entry/img/v10/unselect.png" class="options_question_icon options_question_uncheck">
                                    <img src="http://quce.cdn.woquhudong.cn/entry/img/v10/select.png" class="options_question_icon options_question_select">
                                </div>

                                <div class="options_question_item options_question_checked" data-id="b" data-index="5" data-value="3" onclick="checkoption(this,'3')">
                                    <span>b.夏</span>
                                    <img src="http://quce.cdn.woquhudong.cn/entry/img/v10/unselect.png" class="options_question_icon options_question_uncheck">
                                    <img src="http://quce.cdn.woquhudong.cn/entry/img/v10/select.png" class="options_question_icon options_question_select">
                                </div>

                                <div class="options_question_item options_question_checked" data-id="c" data-index="5" data-value="7" onclick="checkoption(this,'7')">
                                    <span>c.秋</span>
                                    <img src="http://quce.cdn.woquhudong.cn/entry/img/v10/unselect.png" class="options_question_icon options_question_uncheck">
                                    <img src="http://quce.cdn.woquhudong.cn/entry/img/v10/select.png" class="options_question_icon options_question_select">
                                </div>

                                <div class="options_question_item options_question_checked" data-id="d" data-index="5" data-value="5" onclick="checkoption(this,'5')">
                                    <span>d.冬</span>
                                    <img src="http://quce.cdn.woquhudong.cn/entry/img/v10/unselect.png" class="options_question_icon options_question_uncheck">
                                    <img src="http://quce.cdn.woquhudong.cn/entry/img/v10/select.png" class="options_question_icon options_question_select">
                                </div>
                            </div></div></div>
                    <!--<div class="xb_btn_container options_question_prev">-->
                    <!--<a data-id="d" data-index="5" data-onclick="goPrevQuestion(this)" href="javascript:void(0)" class="btn_basic wechatGreen text_holder">重新回答上一题</a>-->
                    <!--</div>-->
                    <div class="options_question_prev hideprevbtn options_question_checked" data-id="d" data-index="5" onclick="goPrevQuestion(this)">
                        <span>重新回答上一题&gt;</span>
                    </div>

                    <div class="xb_conversation_item">
                        <div class="xb_conv_wrap_right">
                            <img class="xb_avatar_right" src="http://quce.cdn.woquhudong.cn/Common/menu/img/usericon.png">
                            <div class="xb_tri_right"></div>
                            <div class="xb_tri_right1"></div>
                            <div class="xb_conv_right">a.春</div>
                        </div>
                    </div>

                    <div class="question_indexes_box">
                        <p class="question_indexes">第7题/共7题</p>
                    </div>

                    <div class="xb_conversation_item">
                        <div class="xb_conv_wrap_left">
                            <img class="xb_avatar_left" src="http://quce.cdn.woquhudong.cn/entry/img/v8/quce.png">
                            <div class="xb_tri_left"></div>
                            <div class="xb_tri_left1"></div>
                            <div class="xb_conv_left  ">
                                下列图片中的眼神情绪，你认为哪个和音乐最符合？
                            </div>
                        </div>
                    </div>

                    <div class="xb_conversation_item">
                        <div class="xb_conv_wrap_left">
                            <img class="xb_avatar_left" src="http://quce.cdn.woquhudong.cn/entry/img/v8/quce.png">
                            <div class="xb_tri_left"></div>
                            <div class="xb_tri_left1"></div>
                            <div class="xb_conv_left audio_pause" onclick="playAudio(this, 'http://uploads-admin.cdn.woquhudong.cn/quce/15355323479nanq.mp3');">
                <span class="audio_icon_box ">
                    <img src="http://quce.cdn.woquhudong.cn/entry/img/v8/01.png" class="audio_ani_btn audio_ani_normal">
                    <img src="http://quce.cdn.woquhudong.cn/entry/img/v8/02.gif" class="audio_ani_btn audio_ani ">
                    <span class="audio_timer" id="" style="display: none;">11"</span>
                </span>
                                <span class="audio_reddot" style="display: none;"></span>
                            </div>

                        </div>
                    </div>
                    <div class="question_options_box"><div class="question_options_container"><div class="question_options_image_box">
                                <div class="option_image_item" onclick="showImage('http://uploads-admin.cdn.woquhudong.cn/quce/15355323664oBkR.jpg')" style="background-image: url(http://uploads-admin.cdn.woquhudong.cn/quce/15355323664oBkR.jpg)">
                                    <img src="http://quce.cdn.woquhudong.cn/entry/img/v10/unselect.png" style="display: block;width: 100%;opacity: 0;">
                                    <span class="options_key">a</span>
                                </div>

                                <div class="option_image_item" onclick="showImage('http://uploads-admin.cdn.woquhudong.cn/quce/153553238037DLH.jpg')" style="background-image: url(http://uploads-admin.cdn.woquhudong.cn/quce/153553238037DLH.jpg)">
                                    <img src="http://quce.cdn.woquhudong.cn/entry/img/v10/unselect.png" style="display: block;width: 100%;opacity: 0;">
                                    <span class="options_key">b</span>
                                </div>

                                <div class="option_image_item" onclick="showImage('http://uploads-admin.cdn.woquhudong.cn/quce/1535532397OiJRt.jpg')" style="background-image: url(http://uploads-admin.cdn.woquhudong.cn/quce/1535532397OiJRt.jpg)">
                                    <img src="http://quce.cdn.woquhudong.cn/entry/img/v10/unselect.png" style="display: block;width: 100%;opacity: 0;">
                                    <span class="options_key">c</span>
                                </div>

                                <div class="option_image_item" onclick="showImage('http://uploads-admin.cdn.woquhudong.cn/quce/1535532415W6jwU.jpg')" style="background-image: url(http://uploads-admin.cdn.woquhudong.cn/quce/1535532415W6jwU.jpg)">
                                    <img src="http://quce.cdn.woquhudong.cn/entry/img/v10/unselect.png" style="display: block;width: 100%;opacity: 0;">
                                    <span class="options_key">d</span>
                                </div>
                            </div><div class="question_options_desc_box">
                                <div class="options_question_item options_question_checked" data-id="a" data-index="6" data-value="3" onclick="checkoption(this,'3')">
                                    <span>a.</span>
                                    <img src="http://quce.cdn.woquhudong.cn/entry/img/v10/unselect.png" class="options_question_icon options_question_uncheck">
                                    <img src="http://quce.cdn.woquhudong.cn/entry/img/v10/select.png" class="options_question_icon options_question_select">
                                </div>

                                <div class="options_question_item options_question_checked" data-id="b" data-index="6" data-value="1" onclick="checkoption(this,'1')">
                                    <span>b.</span>
                                    <img src="http://quce.cdn.woquhudong.cn/entry/img/v10/unselect.png" class="options_question_icon options_question_uncheck">
                                    <img src="http://quce.cdn.woquhudong.cn/entry/img/v10/select.png" class="options_question_icon options_question_select">
                                </div>

                                <div class="options_question_item options_question_checked options_question_item_select" data-id="c" data-index="6" data-value="5" onclick="checkoption(this,'5')">
                                    <span>c.</span>
                                    <img src="http://quce.cdn.woquhudong.cn/entry/img/v10/unselect.png" class="options_question_icon options_question_uncheck">
                                    <img src="http://quce.cdn.woquhudong.cn/entry/img/v10/select.png" class="options_question_icon options_question_select">
                                </div>

                                <div class="options_question_item options_question_checked" data-id="d" data-index="6" data-value="7" onclick="checkoption(this,'7')">
                                    <span>d.</span>
                                    <img src="http://quce.cdn.woquhudong.cn/entry/img/v10/unselect.png" class="options_question_icon options_question_uncheck">
                                    <img src="http://quce.cdn.woquhudong.cn/entry/img/v10/select.png" class="options_question_icon options_question_select">
                                </div>
                            </div></div></div>
                    <!--<div class="xb_btn_container options_question_prev">-->
                    <!--<a data-id="d" data-index="6" data-onclick="goPrevQuestion(this)" href="javascript:void(0)" class="btn_basic wechatGreen text_holder">重新回答上一题</a>-->
                    <!--</div>-->
                    <div class="options_question_prev hideprevbtn options_question_checked" data-id="d" data-index="6" onclick="goPrevQuestion(this)">
                        <span>重新回答上一题&gt;</span>
                    </div>

                    <div class="xb_conversation_item">
                        <div class="xb_conv_wrap_right">
                            <img class="xb_avatar_right" src="http://quce.cdn.woquhudong.cn/Common/menu/img/usericon.png">
                            <div class="xb_tri_right"></div>
                            <div class="xb_tri_right1"></div>
                            <div class="xb_conv_right">c.</div>
                        </div>
                    </div>

                    <div class="xb_conversation_item">
                        <div class="xb_conv_wrap_left">
                            <img class="xb_avatar_left" src="http://quce.cdn.woquhudong.cn/entry/img/v8/quce.png">
                            <div class="xb_tri_left"></div>
                            <div class="xb_tri_left1"></div>
                            <div class="xb_conv_left  ">
                                正在为你分析结果...
                            </div>
                        </div>
                    </div>

                    <div class="xb_conversation_item">
                        <div class="xb_conv_wrap_left">
                            <img class="xb_avatar_left" src="http://quce.cdn.woquhudong.cn/entry/img/v8/quce.png">
                            <div class="xb_tri_left"></div><div class="xb_tri_left1"></div>
                            <div class="xb_conv_left  xb_conv_left_img img-longtap-fix">
                                <div style="overflow: hidden;">
                                    <img src="" class="xb_sendimg" style="margin-bottom: -55px !important;">
                                    <img style="display: none;" src="http://quce.cdn.woquhudong.cn/entry/img/v8/qrcode.png?v=1.6" class="xb_sendimg_qrcode">
                                    <img src="" class="xb_sendimg_opcity longtap-img">
                                </div>
                            </div>
                        </div>
                    </div>

                    <div class="xb_conversation_item">
                        <div class="xb_conv_wrap_left">
                            <img class="xb_avatar_left" src="http://quce.cdn.woquhudong.cn/entry/img/v8/quce.png">
                            <div class="xb_tri_left"></div>
                            <div class="xb_tri_left1"></div>
                            <div class="xb_conv_left  ">
                                长按上方图片保存你的结果卡片
                            </div>
                        </div>
                    </div>
                </div>
                <div id="msg_end_box" style="height: 0px;"><a id="msg_end" name="1" href="#1" style="opacity: 0;">&nbsp;</a></div>
            </div>
        </div>
    </div>
    <!-- 按钮div -->
    <div id="xb_btn_field" class="xb_btn_area" style="display: table;">
        <div class="xb_btn_container">
            <a id="start_game" value="" data-onclick="playAgain();" href="javascript:void(0)" class="btn_basic wechatGreen text_holder">再测一次</a>
        </div>
    </div>

    <div id="morebtn_prompt" class="morebtn_prompt">
        <img class="morebtn_prompt_hand" src="http://quce.cdn.woquhudong.cn/entry/img/v8/hand.png" alt="">
        <img class="morebtn_prompt_arrow" src="http://quce.cdn.woquhudong.cn/entry/img/v8/arrow.png" alt="">
    </div>
</div>

<div id="xb_img_overlay">
    <div id="xb_img_container">
        <div class="big_img_box">
            <img id="xb_img_expand" src="">
            <img id="xb_img_expand_bigqrcode" src="http://quce.cdn.woquhudong.cn/entry/img/v8/bigqrcode.png?v=1.2" style="position: absolute; width: 100%; left: 0px; bottom: 0px; display: block; opacity: 0; ">
        </div>
        <img class="big_resultimg" id="xb_img_expand_opcity" src="" style="">
    </div>
</div>

<div id="xb_img_source_112233" style="display: none;">
    <div id="xb_img_container_new">
        <div class="big_img_box_new">
            <div class="big_img_boxtitle_new">
                <span class="newreuslt_title"><img class="newresult_arrow" src="http://quce.cdn.woquhudong.cn/entry/img/newresult_arrow.png">长按保存你的测试结果</span>
                <img src="http://quce.cdn.woquhudong.cn/entry/img/newresult_close.png" class="newresult_close">
            </div>
            <img id="xb_img_expand_new" src="http://uploads-admin.cdn.woquhudong.cn/quce/1545019374xChG4.png">
            <img class="big_resultimg longtap-img" id="xb_img_expand_opcity_new" style="top: 50px;" src="http://uploads-admin.cdn.woquhudong.cn/quce/1545019374xChG4.png">
        </div>
    </div>
</div>

<div class="new_template_help">
    <div class="helper_bg"></div>
    <img src="http://quce.cdn.woquhudong.cn/entry/img/v10/newhelp.png">
</div>

<script type="text/template" id="temp_indexes">
    <div class="question_indexes_box">
        <p class="question_indexes">第##question_index##题/共##question_length##题</p>
    </div>
</script>
<script type="text/template" id="temp_options_image">
    <div class="option_image_item" onclick="showImage('##option_image##')" style="background-image: url(##option_image##)">
        <img src="http://quce.cdn.woquhudong.cn/entry/img/v10/unselect.png" style="display: block;width: 100%;opacity: 0;">
        <span class="options_key">##option_key##</span>
    </div>
</script>
<script type="text/template" id="temp_question_options">
    <div class="options_question_item" data-id="##btn_id##" data-index="##btn_index##" data-value="##btn_value##" onclick="##btn_onclick##">
        <span>##desc##</span>
        <img src="http://quce.cdn.woquhudong.cn/entry/img/v10/unselect.png" class="options_question_icon options_question_uncheck">
        <img src="http://quce.cdn.woquhudong.cn/entry/img/v10/select.png" class="options_question_icon options_question_select">
    </div>
</script>
<script type="text/template" id="temp_prev_btn">
    <!--<div class="xb_btn_container options_question_prev">-->
    <!--<a data-id="##btn_id##" data-index="##btn_index##" data-onclick="##btn_onclick##" href="javascript:void(0)" class="btn_basic wechatGreen text_holder">重新回答上一题</a>-->
    <!--</div>-->
    <div class="options_question_prev" data-id="##btn_id##" data-index="##btn_index##" onclick="##btn_onclick##">
        <span>重新回答上一题></span>
    </div>
</script>
<script type="text/template" id="temp_question">
    <div class="xb_conversation_item">
        <div class="xb_conv_wrap_left">
            <img class="xb_avatar_left" src="http://quce.cdn.woquhudong.cn/entry/img/v8/quce.png"/>
            <div class="xb_tri_left"></div>
            <div class="xb_tri_left1"></div>
            <div class="xb_conv_left  ">
                ##content##
            </div>
        </div>
    </div>
</script>
<script type="text/template" id="temp_answer">
    <div class="xb_conversation_item">
        <div class="xb_conv_wrap_right">
            <img class="xb_avatar_right" src="##usericon##"/>
            <div class="xb_tri_right"></div>
            <div class="xb_tri_right1"></div>
            <div class="xb_conv_right">##answer##</div>
        </div>
    </div>
</script>
<script type="text/template" id="temp_image">
    <div class="xb_conversation_item">
        <div class="xb_conv_wrap_left">
            <img class="xb_avatar_left" src="http://quce.cdn.woquhudong.cn/entry/img/v8/quce.png">
            <div class="xb_tri_left"></div><div class="xb_tri_left1"></div>
            <div class="xb_conv_left  xb_conv_left_img img-longtap-fix">
                <img src="##src##" class="xb_sendimg">
                <img src="##src##" class="xb_sendimg_opcity">
            </div>
        </div>
    </div>
</script>
<script type="text/template" id="temp_result_image">
    <div class="xb_conversation_item">
        <div class="xb_conv_wrap_left">
            <img class="xb_avatar_left" src="http://quce.cdn.woquhudong.cn/entry/img/v8/quce.png">
            <div class="xb_tri_left"></div><div class="xb_tri_left1"></div>
            <div class="xb_conv_left  xb_conv_left_img img-longtap-fix" >
                <div style="overflow: hidden;">
                    <img src="##src##" class="xb_sendimg" style="margin-bottom: -55px !important;">
                    <img style="display: none;" src="http://quce.cdn.woquhudong.cn/entry/img/v8/qrcode.png?v=1.6" class="xb_sendimg_qrcode"  >
                    <img src="##src##" class="xb_sendimg_opcity longtap-img" >
                </div>
            </div>
        </div>
    </div>
</script>
<script type="text/template" id="temp_btn">
    <div class="xb_btn_container">
        <a id="##btn_id##" value="##btn_value##" data-onclick="##btn_onclick##" href="javascript:void(0)" class="btn_basic wechatGreen text_holder">##btn_title##</a>
    </div>
</script>
<script type="text/template" id="temp_audio">
    <div class="xb_conversation_item">
        <div class="xb_conv_wrap_left">
            <img class="xb_avatar_left" src="http://quce.cdn.woquhudong.cn/entry/img/v8/quce.png"/>
            <div class="xb_tri_left"></div>
            <div class="xb_tri_left1"></div>
            <div class="xb_conv_left audio_pause" onclick="playAudio(this, '##audio##');">
                <span class="audio_icon_box ">
                    <img src="http://quce.cdn.woquhudong.cn/entry/img/v8/01.png" class="audio_ani_btn audio_ani_normal">
                    <img src="http://quce.cdn.woquhudong.cn/entry/img/v8/02.gif" class="audio_ani_btn audio_ani ">
                    <span class="audio_timer" id="##audio_timer##" style="display: none;">11"</span>
                </span>
                <span class="audio_reddot"></span>
            </div>

        </div>
    </div>
</script>
<script type="text/template" id="temp_btn_select_birthday">
    <div class="xb_btn_container" id="select_birthday_box">
        <span id="select_birthday" onclick="appendDatePicker()" href="javascript:void(0)" class="btn_show_datapicker wechatGreen text_holder">点击选择你的生日</span>
    </div>
</script>
<script type="text/template" id="temp_btn_input">
    <div class="xb_btn_container">
        <span class="shotinput" style="height: 47px;">
            <input id="btn_input" type="text" placeholder="请输入你的昵称" value="">
        </span>
        <span id="input_submit" onclick="checkinput()" href="javascript:void(0)" class="btn_input wechatGreen text_holder">发送</span>
    </div>
</script>
<script type="text/template" id="temp_btn_select_constell">
    <div class="xb_btn_container">
        <span class="shotinput" style="height: 47px;">
            <span id="span_constell">请选择星座</span>
            <select name="select_constell" onchange="selectChange()" id="select_constell" >
                <option value="0">请选择星座</option>
                <option value="1">摩羯座</option>
                <option value="2">水瓶座</option>
                <option value="3">双鱼座</option>
                <option value="4">白羊座</option>
                <option value="5">金牛座</option>
                <option value="6">双子座</option>
                <option value="7">巨蟹座</option>
                <option value="8">狮子座</option>
                <option value="9">处女座</option>
                <option value="10">天秤座</option>
                <option value="11">天蝎座</option>
                <option value="12">射手座</option>
            </select>
        </span>
        <span id="constell_submit" onclick="selectConstell()" href="javascript:void(0)" class="btn_input wechatGreen text_holder">确认</span>
    </div>

</script>
<script type="text/template" id="temp_btn_imageinput">
    <div class="xb_btn_container" style="position: relative;">
        <span class="btn_show_datapicker wechatGreen text_holder">点击上传照片 <input id="image_input" type="file" accept="image/*" class="upload-pic-pre-value" onchange="selectFileImage(this);"></span>
    </div>
</script>
<script type="text/template" id="temp_userinput_image">
    <div class="xb_conversation_item">
        <div class="xb_conv_wrap_right">
            <img class="xb_avatar_right" src="##usericon##">
            <div class="xb_tri_right"></div><div class="xb_tri_right1"></div>
            <div class="xb_conv_right  xb_conv_left_img img-longtap-fix">
                <img src="##src##" class="xb_sendimg">
                <img src="##src##" class="xb_sendimg_opcity">
            </div>
        </div>
    </div>
</script>
<script type="text/template" id="temp_input_loading">
    <div class="question_indexes_box input_image_loading">
        <p class="question_indexes">正在检测你的照片<img src="http://quce.cdn.woquhudong.cn/entry/img/v10/loading.gif" style="height: 3px;display: inline-block;margin: 0 0 0 3px;"></p>
    </div>
</script>
<script type="text/template" id="temp_input_text">
    <div class="question_indexes_box">
        <p class="question_indexes">##text##</p>
    </div>
</script>
<audio id="quizaudio" src="http://uploads-admin.cdn.woquhudong.cn/quce/15355323479nanq.mp3" style="display: none;"></audio>

<script src="http://quce.cdn.woquhudong.cn/entry/js/jquery.js"></script>
<script>
    var localimg = "" ? ('http://uploads-user.cdn.woquhudong.cn/'+"") : 'http://quce.cdn.woquhudong.cn/Common/menu/img/usericon.png';
    var usericon = localimg;
    var nickname = "";
    var incprevUrl = "/index.php/wetest/entry/incpreviewbtntap";
    var imgclickflag;
    var imgclicktimer;
    var imgclicktimes;
    var timeOutEvent;
    var longtapflag = true;
    var resultTjurl = "/index.php/wetest/entry/incgetresult";
    var specialresult = '';
    var specialconfig = '';
    var specialstatus = '1';
    var headimgConfig = '';
    var ext_data = 0;
    $(document).on('touchstart','.xb_sendimg_opcity',function(e){
        if($(this).hasClass('longtap-img')){
            $('.big_img_box').removeClass('showbigimg');
            $('#xb_img_expand_opcity').addClass('longtap-img');
            $('#xb_img_expand_bigqrcode').show();
            timeOutEvent = setTimeout("longPress()",500);
        }else{
            $('.big_img_box').addClass('showbigimg');
            $('#xb_img_expand_opcity').removeClass('longtap-img');
            $('#xb_img_expand_bigqrcode').hide();
        }
        imgclicktimes = 0;
        imgclickflag = true;
        imgclicktimer = setInterval(function(){
            imgclicktimes++;
            if(imgclicktimes > 20){
                imgclickflag = false;
                clearInterval(imgclicktimer);
            }
        },25);
    });
    $(document).on('touchmove','.xb_sendimg_opcity',function(e){
        clearTimeout(timeOutEvent);
        timeOutEvent = 0;
        imgclickflag = false;
        clearInterval(imgclicktimer);
    });
    $(document).on('touchend','.xb_sendimg_opcity',function(e){
        clearTimeout(timeOutEvent);
        timeOutEvent = 0;
        clearInterval(imgclicktimer);
        if(imgclickflag){
            showImage( $(this).attr('src'));
        }
    });

    $(document).on('touchstart','#xb_img_expand_opcity',function(e){
        if($(this).hasClass('longtap-img')){
            $('#xb_img_expand_bigqrcode').show();
            timeOutEvent = setTimeout("longPress()",500);
        }else{
            $('#xb_img_expand_bigqrcode').hide();
        }
        imgclicktimes = 0;
        imgclickflag = true;
        imgclicktimer = setInterval(function(){
            imgclicktimes++;
            if(imgclicktimes > 20){
                imgclickflag = false;
                clearInterval(imgclicktimer);
            }
        },25);
    });
    $(document).on('touchmove','#xb_img_expand_opcity',function(e){
        clearTimeout(timeOutEvent);
        timeOutEvent = 0;
        imgclickflag = false;
        clearInterval(imgclicktimer);
    });
    $(document).on('touchend','#xb_img_expand_opcity',function(e){
        e.preventDefault();
        clearTimeout(timeOutEvent);
        timeOutEvent = 0;
        clearInterval(imgclicktimer);
        if(imgclickflag){
            closeImage();
        }
    });

    $(document).on('touchstart','#xb_img_expand_opcity_new',function(e){
        if($(this).hasClass('longtap-img')){
            $('#xb_img_expand_bigqrcode').show();
            timeOutEvent = setTimeout("longPress()",500);
        }else{
            $('#xb_img_expand_bigqrcode').hide();
        }
        imgclicktimes = 0;
        imgclickflag = true;
        imgclicktimer = setInterval(function(){
            imgclicktimes++;
            if(imgclicktimes > 20){
                imgclickflag = false;
                clearInterval(imgclicktimer);
            }
        },25);
    });
    $(document).on('touchmove','#xb_img_expand_opcity_new',function(e){
        clearTimeout(timeOutEvent);
        timeOutEvent = 0;
        imgclickflag = false;
        clearInterval(imgclicktimer);
    });
    $(document).on('touchend','#xb_img_expand_opcity_new',function(e){
        e.preventDefault();
        clearTimeout(timeOutEvent);
        timeOutEvent = 0;
        clearInterval(imgclicktimer);
        if(imgclickflag){
            $('#xb_img_source_112233').hide();
        }
    });

    function longPress(){
        if(longtapflag){
            longtapflag = false;
            timeOutEvent = 0;
            var longtapimg = new Image();
            longtapimg.src = longTapServer + '/gid/' + gameData.id + '/result/' + result['threshold'] + '/uid/' + uuid +'/account/' + attentioncid + (result['new_idx'] ? '/idx/' + result['new_idx'] : '');
        }
    }
    function showImage(src){
        $('#xb_img_expand').attr('src',src);
        $('#xb_img_expand_opcity').attr('src',src);
        $('#xb_img_overlay').show();
    }
    function closeImage(){
        $('#xb_img_expand').attr('src','');
        $('#xb_img_expand_opcity').attr('src','');
        $('#xb_img_overlay').hide();
    }
</script>
<script src="http://quce.cdn.woquhudong.cn/entry/js/common.js?v=15.5">
    /**
     * commonJS
     * about class,share, moregame .etc
     */

    function hasClass(obj, cls) {
        return obj.className.match(new RegExp('(\\s|^)' + cls + '(\\s|$)'));
    }
    function addClass(obj, cls) {
        if (!this.hasClass(obj, cls)) obj.className += " " + cls;
    }
    function removeClass(obj, cls) {
        if (hasClass(obj, cls)) {
            var reg = new RegExp('(\\s|^)' + cls + '(\\s|$)');
            obj.className = obj.className.replace(reg, ' ');
        }
    }
    function toogleClass(obj, cls){
        if(hasClass(obj, cls)){
            removeClass(obj, cls);
        }else{
            addClass(obj, cls);
        }
    }
    function aboutUS(){
        location.href= aboutUrl;
    }
    function random(min,max){
        return Math.floor(min+Math.random()*(max-min));
    }

    function isWeiXin(){
        var ua = window.navigator.userAgent.toLowerCase();
        if(ua.match(/MicroMessenger/i) == 'micromessenger'){
            return true;
        }else{
            return false;
        }
    }
    /*  common function */
    function ajaxGet(url,callback){
        var xmlHttp = new XMLHttpRequest();
        xmlHttp.open("GET",url,true);
        xmlHttp.onreadystatechange= function(){
            if (xmlHttp.readyState==4 && xmlHttp.status==200){
                // var d= xmlHttp.responseText;
                //$result = JSON.parse(d);
                callback&&callback(xmlHttp.responseText);
            }
        }
        xmlHttp.send();
    }

    function ajaxPost(url, data, callback, error){
        var postData = data;
        var xhr = new XMLHttpRequest();
        xhr.open("POST", url, true);
        xhr.setRequestHeader("Content-type","application/x-www-form-urlencoded");
        if(typeof(postData) === 'object'){
            postData = (function(obj){ // 杞垚post闇€瑕佺殑瀛楃涓�.
                var str = "";
                for(var prop in obj){
                    str += prop + "=" + obj[prop] + "&"
                }
                return str;
            })(postData);
        }
        xhr.onreadystatechange = function(){
            var XMLHttpReq = xhr;
            if (XMLHttpReq.readyState == 4) {
                if (XMLHttpReq.status == 200) {
                    var text = XMLHttpReq.responseText;
                    callback&&callback( text);
                }else{
                    xhr.abort();
                    error&&error(XMLHttpReq.status);
                }
            }
        };
        xhr.send(postData);
    }

    function updateRecord(gameId, record, level){
        var  data = {};
        data['record'] = encodeURIComponent(record);
        data['gid'] = gameId;
        data['level'] = level;
        ajaxPost(recordUrl, data);
    }

    /*
    function getResult(serser, gid, option, callback ){
        var timerCnt = 0, getOk = 0, waitTime = 3;
        var getTimer = setInterval(function(){
            timerCnt++;
        },1000);
        var checkTimer = setInterval(function(){
            if(getOk){
                clearInterval(checkTimer);
            }
            if(timerCnt >= 20){
                clearInterval(checkTimer);
                clearInterval(getTimer);
                // ajaxPost(StatusUrl, {id:gid, status:8004});
                // alert("璇锋眰瓒呮椂锛岃鍒锋柊閲嶈瘯"+8004);
                showError(8004);
            }
        },1000);
        ajaxPost(serser, {id:gid, option:option}, function(response){
            response = JSON.parse(response);
            getOk = 1;
            if(response.status == 200){
                var result = JSON.parse(response['content']);
                if(result['img']){
                    result['img'] = adminPath +"/"+ result['img'];
                }
                clearInterval(getTimer);
                if(timerCnt < waitTime){
                    setTimeout(function(){
                        callback(result, JSON.parse(response['total']));
                    }, (waitTime-timerCnt)*1000);
                }else{
                    callback(result, JSON.parse(response['total']));
                }
            }else{
                clearInterval(checkTimer);
                // ajaxPost(StatusUrl, {id:gid, status:response.status});
                // alert("璇锋眰鍑洪敊锛岃鍒锋柊閲嶈瘯锛�"+response.status);
                clearInterval(getTimer);
                if(timerCnt < waitTime){
                    setTimeout(function(){
                        showError(response.status);
                    }, (waitTime-timerCnt)*1000);
                }else{
                    showError(response.status);
                }
            }
        },function(status){
            clearInterval(checkTimer);
            //ajaxPost(StatusUrl, {id:gid, status:status});
            // alert("缃戠粶鍑洪敊锛岃妫€鏌ョ綉缁�!"+status);
            clearInterval(getTimer);
            if(timerCnt < waitTime){
                setTimeout(function(){
                    showError(status);
                }, (waitTime-timerCnt)*1000);
            }else{
                showError(status);
            }
        })
        resultflag = true;
    }
    */

    /*
        use zepto.js ajax
     */
    function getResult(serser, gid, option, callback ){
        var timerCnt = 0, getOk = 0, waitTime = 5;
        var getTimer = setInterval(function(){
            timerCnt++;
        },1000);
        var checkTimer = setInterval(function(){
            if(getOk){
                clearInterval(checkTimer);
            }
        },1000);

        var postData = '';
        if(specialconfig){
            postData = {id:gid, option:option, acid:acid, ext:ext_data, userinput:inputdata_username};
        }else{
            postData = {id:gid, option:option, acid:acid, ext:ext_data};
        }

        if(typeof(postData) === 'object'){
            postData = (function(obj){ // 杞垚post闇€瑕佺殑瀛楃涓�.
                var str = "";
                for(var prop in obj){
                    str += prop + "=" + obj[prop] + "&"
                }
                return str;
            })(postData);
        }
        $.ajax({
            type: 'POST',
            url: serser,
            data: postData,
            dataType: 'json',
            timeout: 20000,
            success: function(data){
                if(data.status == 200){
                    try{
                        if(data['ret_status'] == 2 && sessionStorage.AttentionFunctest == undefined){
                            window.location = setnewcookie + data['ret_id'];
                            return false;
                        }
                    }catch(err){
                        console.log(err)
                    }
                    var result = JSON.parse(data['content']);
                    var attention = JSON.parse(data['attention']);
                    result['attention'] = attention;
                    if(result['img']){
                        result['img'] = adminPath +"/"+ result['img'];
                    }
                    clearInterval(getTimer);
                    if(timerCnt < waitTime){
                        waitTime -= timerCnt;
                        callback(result, JSON.parse(data['total']), waitTime);
                    }else{
                        callback(result, JSON.parse(data['total']), 0);
                    }
                }else{
                    clearInterval(checkTimer);
                    clearInterval(getTimer);
                    if(timerCnt < waitTime){
                        setTimeout(function(){
                            showError(data.status);
                        }, (waitTime-timerCnt)*1000);
                    }else{
                        showError(data.status);
                    }
                }
            },
            error: function(xhr, type){
                var errorinfo = xhr.status+" "+type;
                // console.log(errorinfo)
                showError(errorinfo);
            }
        })
    }

</script>
<script src="http://quce.cdn.woquhudong.cn/entry/js/quceSubject.js?v=6.5">
    /**
     * Created by delan on 2015/10/17.
     */
    var quceSubject = (function(){
        var that;
        function quceSubject(gameData, resPath){
            this.allData = eval(gameData);
            // this.title = eval(this.allData['title']);
            this.logo = this.allData['logo'];
            this.questions = eval(this.allData['question']);
            /* this.result = eval(this.allData['result'])*/
            this.length = this.questions.length;
            this.type =  this.allData.type;
            this.resPath = resPath + '/';
            this.preLoadImg = [];
            this.preLoadAudio = [];
            this._init();
            that = this;
        }

        quceSubject.prototype._init= function(){
            var questions = this.questions;
            for(var i=0; i<this.length; i++){
                if(questions[i].img && !(questions[i].img.indexOf("http://") > -1)){
                    questions[i].img = this.resPath  +銆€questions[i].img;
                    this.preLoadImg.push(questions[i].img);
                }
                if(questions[i].audio){
                    if(!(questions[i].audio.indexOf("http://") > -1)){
                        questions[i].audio = this.resPath  +銆€questions[i].audio;
                    }
                    this.preLoadAudio.push(questions[i].audio);
                }
                var answer = questions[i].answer;
                for(var key in answer){
                    if(answer[key].img){
                        answer[key].img = this.resPath  +  answer[key].img;
                        this.preLoadImg.push(answer[key].img);
                    }
                }
            }
            /*        var result = this.result;
                    for(var i =0; i< result.length;i++ ){
                        if(result[i].img && !(result[i].img.indexOf("http://") > -1)){
                            result[i].img = this.resPath  +銆€result[i].img;
                        }
                    }*/
            this.questions = questions;
            /* this.result = result;*/
        };

        quceSubject.prototype.getBaseInfo = function(){
            var questionInfo = {};
            questionInfo['title'] =  this.allData.title;
            questionInfo['desc'] =  this.allData.desc;
            questionInfo['id'] =  this.allData.id;
            questionInfo['shareImg'] = this.resPath + this.allData.img;
            questionInfo['shareUrl'] = this.allData['share_url'];
            if(this.allData['logo']){
                questionInfo['logo'] = this.resPath + this.allData['logo'];
            }else{
                questionInfo['logo'] = this.allData['logo'];
            }
            return questionInfo;

        };

        quceSubject.prototype.getShareImg = function(){
            var shareImg = this.resPath + this.allData.img;
            return shareImg;

        };

        /*鑾峰彇棰樼洰鏁伴噺*/
        quceSubject.prototype.getQuestionNum = function(){
            return this.length;
        };

        /* 鑾峰彇鏌愰亾棰樼殑闂 */
        quceSubject.prototype.getNthQuestion = function( index ){
            if(index >= 0 && index < this.length)
                return this.questions[index]['question'];
            else
                return false;
        };

        quceSubject.prototype.getNthQuestionImg = function( index ){
            if(index >= 0 && index < this.length)
                return this.questions[index]['img'];
            else
                return false;
        };

        quceSubject.prototype.getNthQuestionAudio = function( index ){
            if(index >= 0 && index < this.length)
                return this.questions[index]['audio'];
            else
                return false;
        };

        /* 鑾峰彇鏌愰亾棰樼殑閫夐」 鍙彁渚沬ndex鍒欒繑鍥炴暣涓€夐」锛� 鑻ユ彁渚沷ptIndex锛� 鍒欒繑鍥炲叿浣撻€夐」鍐呭*/
        quceSubject.prototype.getNthQuestionOpt = function( index, optIndex){
            if(index >= 0 && index < this.length){
                var option = optIndex?(this.questions[index]['answer'][optIndex]):(this.questions[index]['answer']);
                return option;
            }
            else
                return false;
        };


        quceSubject.prototype.getCommonResult = function(level){
            var answer = this.result;
            for(var i=0; i< answer.length; i++){
                if(answer[i].threshold == level){
                    return answer[i];
                }
            }
            return false;
        };

        quceSubject.prototype.getMultipleResult = function(score){
            var answer = this.result;
            for(var i=0; i< answer.length; i++){
                if(score >= answer[i].threshold){
                    return answer[i];
                }
            }
            return false;
        }

        /* 鑾峰彇鎵€鏈夋纭瓟妗� 鎴� 鏌愰亾棰樻纭€夐」 */
        quceSubject.prototype.getRightAnswer = function( index ){
            var isMul =  this.type == "2";

            if(!isMul) return false;
            if(index){
                var answerIndex = this.getNthQuestionOpt(index);
                var maxOption = getRightAnswer(answerIndex);
                return maxOption;
            }

            var rightAnswer = [];

            var questions = this.questions;
            for(var i in questions){
                var answerIndex = questions[i]['answer'];
                var maxOption = getRightAnswer(answerIndex);
                rightAnswer[i] = [];
                rightAnswer[i]['title'] = questions[i]['question'];
                rightAnswer[i]['id'] = maxOption;
                rightAnswer[i]['text'] = questions[i]['answer'][maxOption]['title'];
            }
            return rightAnswer;
        };

        function getRightAnswer(answerIndex){
            var maxScore = 0, maxOption;
            for(var j in answerIndex){
                var itemWeight = answerIndex[j]['weight'];
                if(itemWeight >= maxScore){
                    maxScore = itemWeight;
                    maxOption = j;
                }
            }
            return maxOption;
        }

        return quceSubject;
    }());




</script>
<script src="http://quce.cdn.woquhudong.cn/entry/js/tjpage.js?v=6.0">
    /* 缁撴灉缁熻椤� 鍏敤js */
    var gameresult;
    var gid = gameData['id'];
    var resultdata = [];
    var num = 0;
    var maxwidth = 0;
    var resultflag = true;
    var listindex = [ 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z'];
    var tplid = gameData['tpl_id'];

    function initTjdata(result,maxwidthflag){
        appendHtml();
        for (var i = 0; i < gameresult.length; i++) {
            resultdata[i] = [];
            resultdata[i]['level'] = gameresult[i]['threshold'];
            resultdata[i]['title'] = gameresult[i]['title'];
            resultdata[i]['num'] = 1;
        };
        ajaxGet( url+gid , function(data){
            var tjdata = eval(data);
            for (var i = 0; i < resultdata.length; i++) {
                var thisindex = resultdata[i]['level'];
                var flag = true;
                if(tjdata){
                    for (var j = 0; j < tjdata.length; j++) {
                        if( tjdata[j]['level'] == thisindex || tjdata[j]['level'] == listindex[i]){
                            resultdata[i]['num'] = +tjdata[j]['num'];
                            flag = false;
                        }
                    }
                }else{
                    flag = false;
                }
                if(flag){
                    resultdata[i]['num'] = 1;
                }
                num += resultdata[i]['num'];
            }
            for (var i = 0; i < resultdata.length; i++) {
                resultdata[i]['percent'] = resultdata[i]['num']/num*100;
                if(resultdata[i]['percent'] < 1) resultdata[i]['percent'] = 1;
                if(maxwidth < resultdata[i]['percent'] ){
                    maxwidth = Math.round(resultdata[i]['percent']);
                }
            }
            setTimeout(function() {
                setWidth(result,maxwidthflag);
            }, 520);
        });
    }
    function appendHtml(){
        var htmltext = '';
        for (var i = 0; i < gameresult.length; i++) {
            htmltext += '<div id="tj-result'+listindex[i]+'" class="tj-result"><p class="tj-tesult-title">'+listindex[i]+'.'+gameresult[i]['title']+'</p><p class="tj-percent"> <span id="tj-per'+listindex[i]+'" class="tj-per"></span><span id="tj-num'+listindex[i]+'" class="tj-num">0%</span></p></div>';
        };
        document.getElementById('tj-played').innerHTML = (gameData['view']*3/1000).toFixed(2);
        document.getElementById('tj-box').innerHTML = htmltext;
    }
    /*appendHtml();*/
    function setWidth(result,maxwidthflag){
        var docw = window.innerWidth > 640 ? 640 : window.innerWidth;
        for (var i = 0; i < resultdata.length; i++) {
            addClass(document.getElementById('tj-per'+listindex[i]),'peranimation');
            var width = Math.round(resultdata[i]['percent'])/maxwidth * docw * 0.6;
            if(maxwidthflag){
                width = Math.round(resultdata[i]['percent'])/maxwidth * docw * 0.8;
            }
            document.getElementById('tj-per'+listindex[i]).style.width = width+'px';
            document.getElementById('tj-num'+listindex[i]).innerHTML = Math.round(resultdata[i]['percent'])+"%";

            if( resultdata[i]['level'] == result['threshold'] ){
                var tjtitle = document.getElementById('tj-num'+listindex[i]).innerHTML;
                document.getElementById('tj-title').innerHTML = tjtitle;
                addClass(document.getElementById('tj-result'+listindex[i]),'user-result');
            }
        };
    }
</script>
<script src="http://quce.cdn.woquhudong.cn/entry/js/v10/v10.js?v=5.96">
    /**
     * Created by anbin on 2017/3/28.
     */
    var quceSubject = new quceSubject(gameData, adminPath);
    var baseInfo = quceSubject.getBaseInfo();
    var total = quceSubject.length; // 鎬婚鏁�
    var score = 0;
    var quizType = parseInt(quceSubject.type);
    var current = 1;
    var next = 0;
    var finish = 0;
    var selectflag = true;
    var preLoadImg = quceSubject.preLoadImg;
    var preLoadAudio = quceSubject.preLoadAudio;
    //var audiobtn = document.getElementById('audiobtn');
    var result;
    var gettjflag = true;
    var quizaudio = document.getElementById('quizaudio');
    quizaudio.loop = false;
    var audioloadflag = false;
    var allowaudioplay = false;
    var audioindex = 0;
    var audioreadyStates = [];
    var appendFlag = true;
    var constellresult = 0;
    var isfirstplay = true;

    var u = navigator.userAgent, app = navigator.appVersion;
    var isIphone = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);

    var Optiontemp = $('#temp_question_options').html();
    var Prevtemp = $('#temp_prev_btn').html();
    var OptionImagetemp = $('#temp_options_image').html();
    var Indexestemp = $('#temp_indexes').html();
    var Questiontemp = $('#temp_question').html();
    var answertemp = $('#temp_answer').html();
    var Imagetemp = $('#temp_image').html();
    var ResultImagetemp = $('#temp_result_image').html();
    var btntemp = $('#temp_btn').html();
    var Audiotemp = $('#temp_audio').html();
    var append_timer;
    var resultTjFlag = true;
    var helpstatus = localStorage.getItem('help_show_status') == 'hasshow' ? false : true;
    var inputdata_username = nickname;
    var inputstatus = true;
    var questionIndex = 0;
    var prevIndex = 0;
    var showPrevbtn = true;
    var lastSelect = false;

    var isjumpquiz = gameData.type == 3 ? true:false;
    //var specialArr = [6147, 6149, 6150, 6172, 6177, 6178, 6180, 6194, 6198, 6204, 6203, 6193, 6209, 6192, 6228, 6205, 6152, 6230, 5976, 6240];

    String.prototype.wreplace = function (obj) {
        return this.replace(/\##\w+\##/gi, function (matchs) {
            var returns = obj[matchs.replace(/\##/g, "")];
            return (returns + "") == "undefined" ? "" : returns;
        });
    };

    function initQuceTest() {
        var dom_arr = new Array();
        var btn_arr = new Array();

        var desc = getQuestionDom(baseInfo['desc']);
        dom_arr.push(desc);

        if (baseInfo['logo']) {
            var logo = getImageDom(baseInfo['logo'] + '?imageView2/2/w/480');
            dom_arr.push(logo);
        }

        if(gameData.id == 6667 || gameData.id == 6668){
            appendHtmltoList(dom_arr, btn_arr);

            $('#load_mask').hide();

            setTimeout(function(){
                setQuestion(0);
            }, 1200);
        }else if(gameData.id == 6979){
            $('#load_mask').hide();
            $('#xb_chat_content').append(dom_arr);
            setTimeout(function(){

                $('#msg_end_box').attr('style', 'height: 0px;');
                $('#xb_chat_content').append(getQuestionDom('璇蜂笂浼犳竻鏅扮殑姝ｉ潰浜鸿劯鐓т互鍒ゅ畾棰滃€煎勾榫�!'));
                scroll();
                $('#xb_btn_field').css('display', 'table');
                $('#xb_btn_field').append($('#temp_btn_imageinput').html());
            }, 800);
        }else{
            btn_arr.push(getBtnDom('start'));
            appendHtmltoList(dom_arr, btn_arr);

            $('#load_mask').hide();
        }

    }

    function getQuestionDom(contetn) {
        var data = new Array();
        data['content'] = contetn;
        var html = Questiontemp.wreplace(data);
        return html;
    }
    function getIndexesDom(qnum, length) {
        var data = new Array();
        data['question_index'] = qnum + 1;
        data['question_length'] = length;
        var html = Indexestemp.wreplace(data);
        return html;
    }
    function getAnswerDom(contetn) {
        var data = new Array();
        data['answer'] = contetn;
        if (usericon) {
            data['usericon'] = usericon;
        }
        var html = answertemp.wreplace(data);
        return html;
    }
    function getImageDom(src) {
        var data = new Array();
        data['src'] = src;
        var html = Imagetemp.wreplace(data);
        return html;
    }
    function getOptionDom(question) {
        var data = new Array();
        data['desc'] = question['desc'];
        data['btn_id'] = question['key'];
        data['btn_value'] = question['value'];
        data['btn_index'] = question['index'];
        data['btn_onclick'] = "checkoption(this,'" + data['btn_value'] + "')";
        var html = Optiontemp.wreplace(data);
        return html;
    }
    function getPrevDom(question){
        var data = new Array();
        data['desc'] = question['desc'];
        data['btn_id'] = question['key'];
        data['btn_index'] = question['index'];
        data['btn_onclick'] = "goPrevQuestion(this)";
        var html = Prevtemp.wreplace(data);
        return html;
    }

    function goPrevQuestion(that){
        // 绂佹杩斿洖鎸夐挳澶氭鐐瑰嚮

        if ($(that).hasClass('options_question_checked')) {
            return true;
        }

        if($(that).hasClass('hideprevbtn')){
            console.log('......')
            return true;
        }

        $('.options_question_prev').addClass('hideprevbtn');

        //$('#xb_btn_field').addClass('hideprevbtn');
        //$('.btn_basic').addClass('disabled');
        // 娣诲姞閫変腑浜嬩欢
        var question_index = $(that).attr('data-index');
        $('[data-index=' + question_index + ']').addClass('options_question_checked');

        showPrevbtn = false;
        lastSelect = selectOption.pop();

        if(quizType == 2){
            current -= 1;
        }else if(quizType == 8){
            current -= 1;
        }else if(quizType == 3){
            finish = prevIndex;
        }
        setQuestion(prevIndex);
    }

    function getOptionImageDom(key, src) {
        var data = new Array();
        data['option_image'] = src;
        data['option_key'] = key;
        var html = OptionImagetemp.wreplace(data);
        return html;
    }
    function getResultImageDom(src) {
        var data = new Array();
        data['src'] = src;
        var html = ResultImagetemp.wreplace(data);
        return html;
    }
    function getAudioDom(src) {
        var data = new Array();
        data['audio'] = src;

        var html = Audiotemp.wreplace(data);
        return html;
    }
    function getBtnDom(question) {
        var data = new Array();
        if (question == 'start') {
            data['btn_title'] = '寮€濮�';
            data['btn_id'] = 'start_game';
            data['btn_onclick'] = 'setQuestion(0);';
        } else if (question == 'result') {
            data['btn_title'] = '鍐嶆祴涓€娆�';
            data['btn_id'] = 'start_game';
            data['btn_onclick'] = 'playAgain();';
        }
        var html = btntemp.wreplace(data);
        return html;
    }

    function appendHtmltoList(dom_array, btn_arr) {
        if (appendFlag) {
            appendFlag = false;
            var length = dom_array.length;
            var i = 0;
            append_timer = setInterval(function () {
                //$('#xb_btn_field').removeClass('hideprevbtn');
                if (i < length) {
                    //$('#xb_btn_field').removeClass('hideprevbtn');
                    $('#xb_chat_content').append(dom_array[i++]);
                    scroll();
                    if (i == length) {
                        appendFlag = true;
                        clearInterval(append_timer);
                        $('#xb_btn_field').empty();
                        if (btn_arr.length > 4) {
                            try {
                                var morebtnprompt = localStorage.getItem('quiz_morebtnprompt_flag');
                                if (!morebtnprompt) {
                                    $('#morebtn_prompt').addClass('morebtn_prompt_show');
                                    localStorage.setItem('quiz_morebtnprompt_flag', '1');
                                    setTimeout(function () {
                                        $('#morebtn_prompt').removeClass('morebtn_prompt_show');
                                    }, 2000);
                                }
                            } catch (e) {

                            }
                            $('#xb_btn_field').css('display', 'block');
                            $('#xb_btn_field').css('overflow-x', 'auto');
                            $('.xb_btn_container').css('min-width', '90px');
                        } else {
                            $('#xb_btn_field').css('display', 'table');
                        }
                        for (var j = 0; j < btn_arr.length; j++) {
                            $('#xb_btn_field').append(btn_arr[j]);
                        }
                    }
                }
            }, 500);
        }
    }
    function scroll() {
        $('#xb_page_body').animate({scrollTop: $('#xb_chat_content').height()}, 450);
    }
    function playAgain() {
        $('#msg_end_box').attr('style', 'height: 68px;');
        selectOption = [];
        score = 0;
        current = 1;
        finish = 0;
        next = 0;
        num = 0;
        audioindex = 0;
        setQuestion(0);
        inputdata_username = false;
        inputstatus = true;
    }

    function checkoption(that, value) {
        if(!showPrevbtn){
            console.log('閲嶉€�', lastSelect, value);
            $.ajax({
                type: 'POST',
                url: incprevUrl,
                data: {
                    gid: gid,
                    index: prevIndex,
                    status: lastSelect == value ? 0 : 1
                }
            });
        }

        $('.options_question_prev').addClass('hideprevbtn');
        showPrevbtn = true;

        // 绂佹鏈鐩寜閽€変腑浜嬩欢
        if ($(that).hasClass('options_question_checked')) {
            return true;
        }

        // 娣诲姞閫変腑浜嬩欢
        var question_index = $(that).attr('data-index');
        $('[data-index=' + question_index + ']').addClass('options_question_checked');
        $(that).addClass('options_question_item_select');

        progressStep(question_index);

        // 鍔ㄧ敾
        $('#xb_chat_content').append(getAnswerDom($(that).children('span').html()));
        scroll();
        // 涓嬩竴棰�
        check(value);
    }
    function check(value) {
        if (!quizaudio.paused) {
            quizaudio.pause();
            document.getElementsByClassName('audio_playing')[0].setAttribute('class', 'xb_conv_left audio_pause');
        }
        paduan(value);
    }

    function paduan(selected) {
        if (quizType == 1) {
            selectOption.push(selected);
            showResult();
        } else if (quizType == 2) {
            selected = parseInt(selected);
            score += selected;
            selectOption.push(selected);
            if (total == current) {
                showResult();
            } else {
                prevIndex = questionIndex;
                setQuestion(current);
                current += 1;
            }
        } else if (quizType == 3) {
            var answer = quceSubject.getNthQuestionOpt(finish);
            for (var key in answer) {
                if (answer[key].next == selected) {
                    next = answer[key].next;
                    selectOption.push(next);
                    if (checking(next)) {
                        showResult(next);
                        current = total;
                        return;
                    } else {
                        current = next;
                    }
                    break;
                }
            }
            next = next - 1;
            finish = next;
            prevIndex = questionIndex;
            setQuestion(next);
        } else if(quizType == 8){
            selectOption.push(selected);
            if (total == current) {
                showResult();
            } else {
                prevIndex = questionIndex;
                setQuestion(current);
                current += 1;
            }
        }
    }
    function checking(s) {
        var regexp = /^[a-zA-Z]+$/;
        if (regexp.test(s)) {
            return true;
        }
        else {
            return false;
        }
    }
    function showResult() {
        isfirstplay = false;
        if(gameData.id == 6972 || gameData.id == 6983){
            $('#msg_end_box').attr('style', 'height: 0px;');
            $('#xb_chat_content').append(getQuestionDom('璇蜂笂浼犳竻鏅扮殑姝ｉ潰浜鸿劯鐓т互鍒ゅ畾棰滃€煎勾榫�!'));
            scroll();
            $('#xb_btn_field').css('display', 'table');
            $('#xb_btn_field').append($('#temp_btn_imageinput').html());
        }else if(gameData.id == 6987){
            $('#msg_end_box').attr('style', 'height: 0px;');
            $('#xb_chat_content').append(getQuestionDom('璇蜂笂浼犳竻鏅扮殑姝ｉ潰浜鸿劯鐓т互鍒ゆ柇鐩歌矊鐗硅川!'));
            scroll();
            $('#xb_btn_field').css('display', 'table');
            $('#xb_btn_field').append($('#temp_btn_imageinput').html());
        }else if( gameData.id == 6307){
            $('#msg_end_box').attr('style', 'height: 0px;');
            $('#xb_chat_content').append(getQuestionDom('璇烽€夋嫨浣犵殑鍑虹敓鏃ユ湡'));
            scroll();
            $('#xb_btn_field').css('display', 'table');
            //$('#xb_btn_field').removeClass('hideprevbtn');
            $('#xb_btn_field').append($('#temp_btn_select_birthday').html());
        }else if(gameData.id == 6476 || gameData.id == 6496){
            $('#msg_end_box').attr('style', 'height: 0px;');
            $('#xb_chat_content').append(getQuestionDom('璇烽€夋嫨浣犵殑鏄熷骇'));
            scroll();
            $('#xb_btn_field').css('display', 'table');
            //$('#xb_btn_field').removeClass('hideprevbtn');
            $('#xb_btn_field').append($('#temp_btn_select_constell').html());
        } else if(gameData.id == 6179 || gameData.id == 6337) {
            $('#msg_end_box').attr('style', 'height: 0px;');
            $('#xb_chat_content').append(getQuestionDom('姝ｅ湪涓轰綘鍒嗘瀽缁撴灉...'));
            scroll();
            getResult(resultServer, baseInfo['id'], selectOption, getSpecialResult);
        } else if( specialconfig && acid != 20){
            $('#msg_end_box').attr('style', 'height: 0px;');
            $('#xb_chat_content').append(getQuestionDom('璇疯緭鍏ュ悕瀛楁垨鏄电О锛岀珛鍗充负浣犲垎鏋愮粨鏋�'));
            scroll();
            $('#xb_btn_field').css('display', 'table');
            //$('#xb_btn_field').removeClass('hideprevbtn');
            $('#xb_btn_field').append($('#temp_btn_input').html());
        } else {
            $('#msg_end_box').attr('style', 'height: 0px;');
            $('#xb_chat_content').append(getQuestionDom('姝ｅ湪涓轰綘鍒嗘瀽缁撴灉...'));
            scroll();
            getResult(resultServer, baseInfo['id'], selectOption, getResultCallback);
        }
    }

    function getSpecialResult(response, gResult, waittime){
        result = response;
        gameresult = gResult;
        attentioncid = result['attention']['account'];
        qrcodelink = adminPath + '/' + result['attention']['qrcode'];
        if (isLowVersion && attentioncid != '61' && attentioncid != 44 && attentioncid != 18) {
            attentioncid = 32;
        }

        var resultsrc = '';
        if(gameData.id == 6179){
            resultsrc = 'http://uploads-admin.cdn.woquhudong.cn/quce/1526371595yU8jV.png';
        }else if(gameData.id == 6302){
            resultsrc = 'http://uploads-admin.cdn.woquhudong.cn/quce/1528853961npcDM.png';
        }else if(gameData.id == 6337){
            resultsrc = 'http://uploads-admin.cdn.woquhudong.cn/quce/1531376593IU3DZ.png';
        }else if(gameData.id == 6338){
            var randresult = parseInt(5*Math.random());
            resultsrc = ['http://uploads-admin.cdn.woquhudong.cn/quce/1531971042BwvDp.png', 'http://uploads-admin.cdn.woquhudong.cn/quce/1531971034hptrH.png', 'http://uploads-admin.cdn.woquhudong.cn/quce/1531971024JGUi5.png',  'http://uploads-admin.cdn.woquhudong.cn/quce/15319710185wi44.png', 'http://uploads-admin.cdn.woquhudong.cn/quce/1531970991UT8gX.png'][randresult]
            result.threshold = ['A','B','C','D','E'][randresult];
        }else if(gameData.id == 6336){
            resultsrc = 'http://uploads-admin.cdn.woquhudong.cn/quce/1531966974qL6Tb.png';
        }
        getResulttj(result.threshold);

        var resultimg = new Image();
        resultimg.crossOrigin = '';
        resultimg.onload = function () {

            var canvas = document.createElement('canvas');
            var ctx = canvas.getContext('2d');

            canvas.width = resultimg.width;
            canvas.height = resultimg.height;
            ctx.drawImage(resultimg, 0, 0);


            // 缁樺埗闆疯揪鍥�
            var b = escape(selectOption);
            var sum = 0;
            for(var i in b){
                sum += b.charAt(i).charCodeAt();
            }

            if(gameData.id == 6179){
                var index = sum%8;
                var scoreArr = [Math.round(sum/11)%5+2,Math.round(sum/22)%5+2,Math.round(sum/33)%5+2,Math.round(sum/44)%5+2,sum%5+2];
                var normalArr = [11,12];
                if(index<scoreArr.length){
                    scoreArr[index] = 12;
                }else if(index==5){
                    scoreArr[2] = normalArr[sum%2];
                    scoreArr[4] = normalArr[sum%2];
                }else if(index == 6){
                    scoreArr[0] = normalArr[sum%2];
                    scoreArr[3] = normalArr[sum%2];
                }
                var mapinfo = {
                    0:{
                        'x': 320,
                        'y': 485 - (485-284)*(scoreArr[0]/10)
                    },
                    1:{
                        'x': 320 - (320-128)*(scoreArr[1]/10),
                        'y': 485 - (485-421)*(scoreArr[1]/10)
                    },
                    2:{
                        'x': 320 - (320-200)*(scoreArr[2]/10),
                        'y': 485 - (485-647)*(scoreArr[2]/10)
                    },
                    3:{
                        'x': 320 - (320-437)*(scoreArr[3]/10),
                        'y': 485 - (485-647)*(scoreArr[3]/10)
                    },
                    4:{
                        'x': 320 - (320-511)*(scoreArr[4]/10),
                        'y': 485 - (485-423)*(scoreArr[4]/10)
                    }
                };
                ctx.beginPath();
                ctx.moveTo(mapinfo[0]['x'], mapinfo[0]['y']);
                ctx.lineTo(mapinfo[1]['x'], mapinfo[1]['y']);
                ctx.lineTo(mapinfo[2]['x'], mapinfo[2]['y']);
                ctx.lineTo(mapinfo[3]['x'], mapinfo[3]['y']);
                ctx.lineTo(mapinfo[4]['x'], mapinfo[4]['y']);
                ctx.lineTo(mapinfo[0]['x'], mapinfo[0]['y']);
                ctx.lineWidth = 2;
                ctx.strokeStyle = 'rgb(233, 48, 0)';
                ctx.stroke();
                ctx.fillStyle = 'rgba(233, 48, 0, 0.5)';
                ctx.fill()
                ctx.closePath();
                for(var key in mapinfo){
                    ctx.beginPath();
                    ctx.lineWidth = 2;
                    ctx.arc(mapinfo[key]['x'], mapinfo[key]['y'], 4, 0, 2 * Math.PI);
                    ctx.fillStyle = 'rgb(233, 48, 0)';
                    ctx.fill();
                    ctx.closePath();
                }
                var resultimage = canvas.toDataURL();
                var resultdom = getResultImageDom(resultimage);
                appendResult(waittime, resultdom);
            }
            else if(gameData.id == 6336){
                sum = Math.floor(Math.random()*1000+1);
                var index = sum%8;
                var scoreArr = [Math.round(sum/10)%5+3,Math.round(sum/20)%5+3,Math.round(sum/30)%5+3,Math.round(sum/40)%5+3,Math.round(sum/50)%5+3,Math.round(sum/60)%5+3,sum%5+3];
                var normalArr = [8,9];
                if(index<scoreArr.length){
                    scoreArr[index] = 9;
                }else if(index==5){
                    scoreArr[2] = normalArr[sum%2];
                    scoreArr[4] = normalArr[sum%2];
                }else if(index == 6){
                    scoreArr[0] = normalArr[sum%2];
                    scoreArr[3] = normalArr[sum%2];
                }else if(index == 7) {
                    scoreArr[1] = normalArr[sum % 2];
                    scoreArr[5] = normalArr[sum % 2];
                }
                var mapinfo = {
                    0:{
                        'x': 320,
                        'y': 450 - (450-272)*(scoreArr[0]/8)
                    },
                    1:{
                        'x': 320 - (320-181)*(scoreArr[1]/8),
                        'y': 450 - (450-339)*(scoreArr[1]/8)
                    },
                    2:{
                        'x': 320 - (320-145)*(scoreArr[2]/8),
                        'y': 450 - (450-490)*(scoreArr[2]/8)
                    },
                    3:{
                        'x': 320 - (320-240)*(scoreArr[3]/8),
                        'y': 450 - (450-614)*(scoreArr[3]/8)
                    },
                    4:{
                        'x': 320 - (320-400)*(scoreArr[4]/8),
                        'y': 450 - (450-615)*(scoreArr[4]/8)
                    },
                    5:{
                        'x': 320 - (320-499)*(scoreArr[5]/8),
                        'y': 450 - (450-490)*(scoreArr[5]/8)
                    },
                    6:{
                        'x': 320 - (320-461)*(scoreArr[6]/8),
                        'y': 450 - (450-337.5)*(scoreArr[6]/8)
                    }
                };
                ctx.beginPath();
                ctx.moveTo(mapinfo[0]['x'], mapinfo[0]['y']);
                ctx.lineTo(mapinfo[1]['x'], mapinfo[1]['y']);
                ctx.lineTo(mapinfo[2]['x'], mapinfo[2]['y']);
                ctx.lineTo(mapinfo[3]['x'], mapinfo[3]['y']);
                ctx.lineTo(mapinfo[4]['x'], mapinfo[4]['y']);
                ctx.lineTo(mapinfo[5]['x'], mapinfo[5]['y']);
                ctx.lineTo(mapinfo[6]['x'], mapinfo[6]['y']);
                ctx.lineTo(mapinfo[0]['x'], mapinfo[0]['y']);
                ctx.lineWidth = 2;
                ctx.strokeStyle = 'rgb(243, 255, 43)';
                ctx.stroke();
                ctx.fillStyle = 'rgba(243, 255, 43, 0.35)';
                ctx.fill()
                ctx.closePath();
                for(var key in mapinfo){
                    ctx.beginPath();
                    ctx.lineWidth = 2;
                    ctx.arc(mapinfo[key]['x'], mapinfo[key]['y'], 4, 0, 2 * Math.PI);
                    ctx.fillStyle = 'rgb(243, 255, 43)';
                    ctx.fill();
                    ctx.closePath();
                }
                var nameimg = new Image();
                nameimg.crossOrigin = '';
                nameimg.onload = function(){
                    var config = JSON.parse(specialconfig);
                    ctx.drawImage(nameimg, 0, 0, nameimg.width, nameimg.height, (resultimg.width - nameimg.width)/2, config['y'], nameimg.width, nameimg.height);
                    var qrcode = new Image();
                    qrcode.crossOrigin = '';
                    qrcode.onload = function () {
                        ctx.drawImage(qrcode, 0, 0, qrcode.width, qrcode.height, 0, resultimg.height - qrcode.height, qrcode.width, qrcode.height);
                        var resultimage = canvas.toDataURL();
                        var resultdom = getResultImageDom(resultimage);
                        appendResult(waittime, resultdom);
                    }
                    qrcode.src = qrcodelink;
                }
                nameimg.src = namepath + inputdata_username + '/gid/' + gameData.id;
            }
            else if(gameData.id == 6337){
                sum = Math.floor(Math.random()*1000+1);
                var index = sum%8;
                var scoreArr = [Math.round(sum/10)%5+3,Math.round(sum/20)%5+3,Math.round(sum/30)%5+3,Math.round(sum/40)%5+3,sum%5+3];
                var normalArr = [8,9];
                if(index<scoreArr.length){
                    scoreArr[index] = 9;
                }else if(index==5){
                    scoreArr[2] = normalArr[sum%2];
                    scoreArr[4] = normalArr[sum%2];
                }else if(index == 6){
                    scoreArr[0] = normalArr[sum%2];
                    scoreArr[3] = normalArr[sum%2];
                }
                var mapinfo = {
                    0:{
                        'x': 320,
                        'y': 495 - (495-336)*(scoreArr[0]/8)
                    },
                    1:{
                        'x': 320 - (320-170)*(scoreArr[1]/8),
                        'y': 495 - (495-447)*(scoreArr[1]/8)
                    },
                    2:{
                        'x': 320 - (320-227)*(scoreArr[2]/8),
                        'y': 495 - (495-623)*(scoreArr[2]/8)
                    },
                    3:{
                        'x': 320 - (320-412)*(scoreArr[3]/8),
                        'y': 495 - (495-623)*(scoreArr[3]/8)
                    },
                    4:{
                        'x': 320 - (320-470)*(scoreArr[4]/8),
                        'y': 495 - (495-447)*(scoreArr[4]/8)
                    }
                };
                ctx.beginPath();
                ctx.moveTo(mapinfo[0]['x'], mapinfo[0]['y']);
                ctx.lineTo(mapinfo[1]['x'], mapinfo[1]['y']);
                ctx.lineTo(mapinfo[2]['x'], mapinfo[2]['y']);
                ctx.lineTo(mapinfo[3]['x'], mapinfo[3]['y']);
                ctx.lineTo(mapinfo[4]['x'], mapinfo[4]['y']);
                ctx.lineTo(mapinfo[0]['x'], mapinfo[0]['y']);
                ctx.lineWidth = 2;
                ctx.setLineDash([10]);
                ctx.strokeStyle = 'rgb(255, 0, 0)';
                ctx.stroke();
                ctx.fillStyle = 'rgba(252, 217, 29, 0.25)';
                ctx.fill()
                ctx.closePath();

                var nameimg = new Image();
                nameimg.crossOrigin = '';
                nameimg.onload = function(){
                    ctx.drawImage(nameimg, 0, 0, nameimg.width, nameimg.height, (resultimg.width - nameimg.width)/2, 30, nameimg.width, nameimg.height);
                    var resultimage = canvas.toDataURL();
                    var resultdom = getResultImageDom(resultimage);
                    var qrcode = new Image();
                    qrcode.crossOrigin = '';
                    qrcode.onload = function () {
                        ctx.drawImage(qrcode, 0, 0, qrcode.width, qrcode.height, 0, resultimg.height - qrcode.height, qrcode.width, qrcode.height);
                        appendResult(waittime, resultdom);
                    }
                    qrcode.src = qrcodelink;

                }
                nameimg.src = namepath + inputdata_username + '/gid/' + gameData.id;
            }
            else if(gameData.id == 6338){
                sum = Math.floor(Math.random()*1000+1);
                var index = sum%8;
                var scoreArr = [Math.round(sum/10)%6+3,Math.round(sum/20)%6+3,Math.round(sum/30)%6+3,Math.round(sum/40)%6+3,Math.round(sum/50)%6+3,sum%6+3];
                var normalArr = [8,9];
                if(index<scoreArr.length){
                    scoreArr[index] = 9;
                }else if(index==5){
                    scoreArr[2] = normalArr[sum%2];
                    scoreArr[4] = normalArr[sum%2];
                }else if(index == 6){
                    scoreArr[0] = normalArr[sum%2];
                    scoreArr[3] = normalArr[sum%2];
                }
                var mapinfo = {
                    0:{
                        'x': 320 - (320-220)*(scoreArr[0]/8),
                        'y': 460 - (460-285)*(scoreArr[0]/8)
                    },
                    1:{
                        'x': 320 - (320-118)*(scoreArr[1]/8),
                        'y': 460 - (460-460)*(scoreArr[1]/8)
                    },
                    2:{
                        'x': 320 - (320-220)*(scoreArr[2]/8),
                        'y': 460 - (460-635)*(scoreArr[2]/8)
                    },
                    3:{
                        'x': 320 - (320-422)*(scoreArr[3]/8),
                        'y': 460 - (460-635)*(scoreArr[3]/8)
                    },
                    4:{
                        'x': 320 - (320-523)*(scoreArr[4]/8),
                        'y': 460 - (460-460)*(scoreArr[4]/8)
                    },
                    5:{
                        'x': 320 - (320-422)*(scoreArr[5]/8),
                        'y': 460 - (460-285)*(scoreArr[5]/8)
                    }
                };
                ctx.beginPath();
                ctx.moveTo(mapinfo[0]['x'], mapinfo[0]['y']);
                ctx.lineTo(mapinfo[1]['x'], mapinfo[1]['y']);
                ctx.lineTo(mapinfo[2]['x'], mapinfo[2]['y']);
                ctx.lineTo(mapinfo[3]['x'], mapinfo[3]['y']);
                ctx.lineTo(mapinfo[4]['x'], mapinfo[4]['y']);
                ctx.lineTo(mapinfo[5]['x'], mapinfo[5]['y']);
                ctx.lineTo(mapinfo[0]['x'], mapinfo[0]['y']);
                ctx.lineWidth = 2;
                ctx.strokeStyle = 'rgb(25, 162, 240)';
                ctx.stroke();
                ctx.fillStyle = 'rgba(255, 255, 0, 0.25)';
                ctx.fill()
                ctx.closePath();

                for(var key in mapinfo){
                    ctx.beginPath();
                    ctx.lineWidth = 2;
                    ctx.arc(mapinfo[key]['x'], mapinfo[key]['y'], 4, 0, 2 * Math.PI);
                    ctx.fillStyle = 'rgb(25, 162, 240)';
                    ctx.fill();
                    ctx.closePath();
                }

                var nameimg = new Image();
                nameimg.crossOrigin = '';
                nameimg.onload = function(){
                    ctx.drawImage(nameimg, 0, 0, nameimg.width, nameimg.height, (resultimg.width - nameimg.width)/2, 40, nameimg.width, nameimg.height);
                    var qrcode = new Image();
                    qrcode.crossOrigin = '';
                    qrcode.onload = function () {
                        ctx.drawImage(qrcode, 0, 0, qrcode.width, qrcode.height, 0, resultimg.height - qrcode.height, qrcode.width, qrcode.height);
                        var resultimage = canvas.toDataURL();
                        var resultdom = getResultImageDom(resultimage);
                        appendResult(waittime, resultdom);
                    }
                    qrcode.src = qrcodelink;

                }
                nameimg.src = namepath + inputdata_username + '/gid/' + gameData.id;
            }
        }
        resultimg.src = resultsrc;
    }

    function getResultCallback(response, gResult, waittime) {
        result = response;
        gameresult = gResult;
        attentioncid = result['attention']['account'];
        qrcodelink = adminPath + '/' + result['attention']['qrcode'];
        if (isLowVersion && attentioncid != '61' && attentioncid != 44 && attentioncid != 18) {
            attentioncid = 32;
        }
        getResulttj(result.threshold);

        if(acid != 20 && specialresult){
            var newresult = JSON.parse(specialresult);
            result['img'] = adminPath + '/' + newresult[result.threshold];
        }

        var resultimg = new Image();
        resultimg.crossOrigin = '';
        resultimg.onload = function () {
            drawCanvas(resultimg, function (resultimage) {
                var resultdom = getResultImageDom(resultimage);
                appendResult(waittime, resultdom, resultimage);
            });
        }
        resultimg.src = result['img'];

        var answerTitle = result['title'];
        if (result['sharetitle']) {
            shareConfig.title = shareData.title = result['sharetitle'];
        } else if (answerTitle) {
            shareConfig.title = shareData.title = "鎴戝湪銆�" + baseInfo.title + "銆嬩腑娴嬭瘯缁撴灉鏄細" + answerTitle + "銆備綘涔熸潵璇曡瘯";
        }
    }

    function appendResult(waittime, resultdom, resultimage){
        waittime = waittime - 2 > 0 ? (waittime - 2) : 0;
        setTimeout(function () {
            $('#xb_chat_content').append(resultdom);
            scroll();
            /*if(sourceId == '15'){
                $('#xb_img_expand_new').attr('src', resultimage);
                $('#xb_img_expand_opcity_new').attr('src', resultimage);
                $('#xb_img_source_112233').show();
                console.log('showbigresult')
            }*/
            setTimeout(function () {
                $('#xb_chat_content').append(getQuestionDom('闀挎寜涓婃柟鍥剧墖淇濆瓨浣犵殑缁撴灉鍗＄墖'));
                scroll();
                $('#xb_btn_field').empty();
                $('#xb_btn_field').css('display', 'table');
                $('#xb_btn_field').append(getBtnDom('result'));
            }, 1000);
        }, waittime * 1000);
    }

    function getResulttj(threshold) {
        if (resultTjFlag) {
            resultTjFlag = false;
            var data = '';
            if(result['new_idx']){
                data = {id: gid, acid: acid, account: attentioncid, result: threshold, idx: result['new_idx']}
            }else{
                data = {id: gid, acid: acid, account: attentioncid, result: threshold}
            }
            var tempurl = resultTjurl + '/src/' + sourceId + '/id/' + gid + '/acid/' + acid;
            if(attentioncid){
                tempurl += '/account/' + attentioncid;
            }
            if(threshold){
                tempurl += '/result/' + threshold;
            }
            if(result['new_idx']){
                tempurl += '/idx/' + result['new_idx'];
            }
            $.ajax({
                type: 'GET',
                url: tempurl,
                success: function (data) {
                    resultTjFlag = false;
                },
                error: function () {
                    resultTjFlag = true;
                }
            })
        }
    }

    function drawCanvas(bgimg, callback) {
        if (isLowVersion || attentioncid == 61 || attentioncid == 1001 || attentioncid == 1002) {
            callback(bgimg.src);
            return false;
        }
        var canvas = document.createElement('canvas');
        var ctx = canvas.getContext('2d');

        var iamgeArr = [];
        if(qrcodelink){
            iamgeArr.push(qrcodelink)
        }
        if(specialconfig){
            iamgeArr.push(namepath + inputdata_username + '/gid/' + gameData.id);
        }
        if(headimgConfig){
            iamgeArr.push(localimg)
        }

        if(iamgeArr.length){
            comPreLoader(iamgeArr, function(ImageObj){
                canvas.width = bgimg.width;
                canvas.height = bgimg.height;

                if(headimgConfig && ImageObj[ImageObj.length-1]){
                    var headimg_data = JSON.parse(headimgConfig);
                    if(result.threshold && headimg_data[result.threshold]){
                        headimg_data = headimg_data[result.threshold];
                    }
                    ctx.drawImage(ImageObj[ImageObj.length-1], 0, 0, ImageObj[ImageObj.length-1].width, ImageObj[ImageObj.length-1].height, headimg_data['x'], headimg_data['y'], headimg_data['width'], headimg_data['height']);
                }

                ctx.drawImage(bgimg, 0, 0);

                if(specialconfig){
                    var config = JSON.parse(specialconfig);
                    if(result.threshold && config[result.threshold]){
                        config = config[result.threshold];
                    }
                    if(config['align'] == 'center'){
                        ctx.drawImage(ImageObj[1], 0, 0, ImageObj[1].width, ImageObj[1].height, (bgimg.width - ImageObj[1].width)/2, config['y'], ImageObj[1].width, ImageObj[1].height);
                    }else if(config['align'] == 'right'){
                        ctx.drawImage(ImageObj[1], 0, 0, ImageObj[1].width, ImageObj[1].height, config['x'] - ImageObj[1].width, config['y'], ImageObj[1].width, ImageObj[1].height);
                    }else if(config['align'] == 'left'){
                        ctx.drawImage(ImageObj[1], 0, 0, ImageObj[1].width, ImageObj[1].height, config['x'], config['y'], ImageObj[1].width, ImageObj[1].height);
                    }
                }

                if(qrcodelink){
                    ctx.drawImage(ImageObj[0], 0, 0, ImageObj[0].width, ImageObj[0].height, 0, bgimg.height - (ImageObj[0].height * bgimg.width / ImageObj[0].width), bgimg.width, ImageObj[0].height * bgimg.width / ImageObj[0].width);
                }

                callback(canvas.toDataURL());
                return false;

            });
        }
    }

    function comPreLoader(sourceArr, callback) {
        var that = this.comPreLoader;
        that.resourceCnt = sourceArr.length || 0;
        that.loadIndex = 0;
        that.imgObg = [];
        that.callback = callback;
        that.finishCnt = 0;

        that.preLoad = function (path, index) {
            var self = that;
            var img = new Image();
            img.crossOrigin = '';
            img.onload = function () {
                self.imgObg[index] = img;
                self.finishCnt++;
                if (self.finishCnt >= self.resourceCnt) {
                    self.callback && self.callback(self.imgObg);
                }
            };
            img.src = path;
        }
        that.loadStart = function () {
            var self = that;
            for (var i = 0; i < that.resourceCnt; i++) {
                self.preLoad(sourceArr[self.loadIndex], self.loadIndex);
                self.loadIndex++;
            }
        }
        that.loadStart();
    }

    function setQuestion(qNum) {
        $('#msg_end_box').attr('style', 'height: 68px;');

        var question = quceSubject.getNthQuestion(qNum);
        var answer = quceSubject.getNthQuestionOpt(qNum);
        var questionImg = quceSubject.getNthQuestionImg(qNum);
        var questionAudio = quceSubject.getNthQuestionAudio(qNum);

        var dom_arr = new Array();
        var btn_arr = new Array();
        var hasimage = false;

        var html = '';
        if(!isjumpquiz){
            html += getIndexesDom(qNum, quceSubject.getQuestionNum()) + getQuestionDom(question);
        }else{
            html += getQuestionDom(question);
        }
        //dom_arr.push(getIndexesDom(qNum, quceSubject.getQuestionNum()) + getQuestionDom(question));

        if (questionImg) {
            html += getImageDom(questionImg + '?imageView2/2/w/480');
            //dom_arr.push(getImageDom(questionImg+'?imageView2/2/w/480'));
        }
        if (questionAudio) {
            html += getAudioDom(questionAudio);
            //dom_arr.push(getAudioDom(questionAudio));
        }

        var optionshtml = '<div class="question_options_box"><div class="question_options_container">';

        for (var key in answer) {
            answer[key]['key'] = key;
            if (answer[key]['img']) {
                hasimage = true;
            }
        }
        if (hasimage) {
            optionshtml += '<div class="question_options_image_box">';
            for (var key in answer) {
                if (answer[key]['img']) {
                    optionshtml += getOptionImageDom(key, answer[key]['img']);
                }
            }
            optionshtml += '</div>';
        }

        optionshtml += '<div class="question_options_desc_box">';
        var answerTemp;
        for (var key in answer) {
            answerTemp = answer[key];
            answerTemp['desc'] = key + '.' + answer[key]['title'];
            if (quizType == 1) {
                answerTemp['value'] = key.toUpperCase();
            } else if (quizType == 2) {
                answerTemp['value'] = answerTemp['weight'];
            } else if (quizType == 3) {
                answerTemp['value'] = answerTemp['next'];
            } else if (quizType == 8) {
                answerTemp['value'] = key.toUpperCase();
            }
            answerTemp['num'] = key;
            answerTemp['index'] = qNum;
            optionshtml += getOptionDom(answerTemp);
        }


        optionshtml += '</div></div></div>';
        // if 涓嶆槸绗竴棰樺拰鏈€鍚庝竴棰橈紝涓斿凡璇ラ鏈噸鏂扮瓟棰�
        questionIndex = qNum;
        if(qNum > 0 && showPrevbtn){
            optionshtml +=  getPrevDom(answerTemp);
            //btn_arr.push(getPrevDom(answerTemp));
        }

        html += optionshtml;
        dom_arr.push(html);
        appendHtmltoList(dom_arr, btn_arr);
        if (helpstatus) {
            localStorage.setItem('help_show_status', 'hasshow');
            helpstatus = false;
            $('.new_template_help').show();
            setTimeout(function () {
                $('.new_template_help').hide();
            }, 2000);
        }
    }

    function showError(errorcode) {
        window.location = resultPage + "/id/" + baseInfo.id + "/tpl/v8/option/" + selectOption + "/errorcode/" + errorcode;
    }

    function playAudio(that, src) {
        that.children[1].style.display = 'none';
        allowaudioplay = true;
        that.setAttribute('class', 'xb_conv_left audio_playing');
        quizaudio.setAttribute('src', src);
        if (isIphone) {
            quizaudio.play();
        } else {
            if (audioloadflag) {
                quizaudio.play();
            }
        }
    }

    function checkinput(){
        inputdata_username = $('#btn_input').val();
        if(!inputdata_username){
            alert('鏄电О涓嶈兘涓虹┖锛�');
            return false;
        }

        if(!inputstatus){
            return false;
        }
        inputstatus = false;

        $('#xb_chat_content').append(getAnswerDom(inputdata_username));
        scroll();

        setTimeout(function(){
            $('#xb_chat_content').append(getQuestionDom('姝ｅ湪涓轰綘鍒嗘瀽缁撴灉...'));
            scroll();
            if(gameData.id == 6972) {
                show6972result();
            }else if(gameData.id == 6979){
                show6979result();
            }else if(gameData.id == 6983){
                show6983result();
            }else if(gameData.id == 6987){
                getResult(resultServer, baseInfo['id'], selectOption, show6987result);
            }else if(gameData.id == 6338 || gameData.id == 6336){
                getResult(resultServer, baseInfo['id'], selectOption, getSpecialResult);
            }else if(gameData.id == 6302){
                getResult(resultServer, baseInfo['id'], selectOption, drawSpecialCard);
            }else if(gameData.id == 6307){
                getResult(resultServer, baseInfo['id'], selectOption, draw6307Result);
            }else if(gameData.id == 6476){
                getResult(resultServer, baseInfo['id'], selectOption, draw6476Result);
            }else if(gameData.id == 6350){
                getResult(resultServer, baseInfo['id'], selectOption, draw6350Result);
            }else if(gameData.id == 6496){
                ext_data = constellresult;
                getResult(resultServer, baseInfo['id'], selectOption, draw6496Result);
            }else{
                getResult(resultServer, baseInfo['id'], selectOption, getResultCallback);
            }
        }, 500);
    }

    quizaudio.addEventListener('canplaythrough', function () {
        audioloadflag = true;
        if (allowaudioplay) {
            quizaudio.play();
        }
    }, false);

    quizaudio.addEventListener('ended', function () {
        document.getElementsByClassName('audio_playing')[0].setAttribute('class', 'xb_conv_left audio_pause');
    }, false);

    $('#morebtn_prompt').click(function () {
        try {
            localStorage.setItem('quiz_morebtnprompt_flag', '1');
            $('#morebtn_prompt').removeClass('morebtn_prompt_show');
        } catch (e) {

        }
    });

    $('.newresult_close').click(function(){
        $('#xb_img_source_112233').hide();
    });

    function selectConstell(){
        constellresult = $('#select_constell').val();
        if(constellresult == 0){
            alert('璇烽€夋嫨鏄熷骇');
            return true;
        }

        $('#xb_chat_content').append(getAnswerDom($('#span_constell').html()));
        scroll();

        setTimeout(function(){
            $('#xb_btn_field').empty();
            $('#msg_end_box').attr('style', 'height: 0px;');
            $('#xb_chat_content').append(getQuestionDom('璇疯緭鍏ュ悕瀛楁垨鏄电О锛岀珛鍗充负浣犲垎鏋愮粨鏋�'));
            scroll();
            $('#xb_btn_field').css('display', 'table');
            //$('#xb_btn_field').removeClass('hideprevbtn');
            $('#xb_btn_field').append($('#temp_btn_input').html());
        }, 500);
    }

    function selectChange(){
        var sel_obj = document.getElementById("select_constell");
        var index = sel_obj.selectedIndex;
        $('#span_constell').html(sel_obj.options[index].text);
    }

    function progressStep(index){
        if(isfirstplay && recordProgress == 1){
            var tjurl = progressUrl + '/gid/' + gameData.id + '/step/' + ( parseInt(index) + 1 );
            $.ajax({
                url: tjurl
            })
        }
    }
</script>
<script>
    window.onload = function() {
        $(document).on('click','.btn_basic',function(){
            if(!$(this).hasClass('disabled')){
                $('#xb_chat_content').append(getAnswerDom($(this).html()));
                scroll();
                $('.btn_basic').addClass('disabled');
                var fun = eval($(this).attr('data-onclick'));
                fun;
            }
        });
        initQuceTest();

        if("" == 1){
            setTimeout(function(){
                window.location.href = "/index.php/wetest/entry/improveuserinfo";
            }, 500);
        }
    }
</script>
<script src="http://quce.cdn.woquhudong.cn/entry/js/jweixin-1.0.0.js"></script>
<script>
    /* shareConfig */
    var conf_data = {
        appId: 'wxc074fb6894613059',
        timestamp: 1558867243,
        nonceStr: 'wetest',
        signature: '3edd28352ed0f7d6f206397f74ea2b4e369bd644'
    }
    var shareData = {
        trigger: function(res) {
            wx.onMenuShareAppMessage(shareData);
            /*wx.onMenuShareTimeline(shareData);*/
        },
    };
    wx.config({
        debug: false,
        appId: conf_data.appId,
        timestamp: conf_data.timestamp,
        nonceStr: conf_data.nonceStr,
        signature: conf_data.signature,
        jsApiList: ['checkJsApi', 'onMenuShareAppMessage', 'onMenuShareTimeline', 'closeWindow', 'hideMenuItems']
    });
    wx.ready(function() {
        wx.hideMenuItems({
            menuList: [
                'menuItem:share:timeline'
            ]
        })
        wx.onMenuShareAppMessage(shareData);
        /*wx.onMenuShareTimeline(shareData);*/
    });
    wx.checkJsApi({
        jsApiList: ['onMenuShareTimeline'],
        success: function(res) {}
    });

    var _host = "http://" + window.location.host;
    var share_url = _host + "/index.php/wetest/entry/index/id/6466/from/mp";//baseInfo.shareUrl || "http://m.tiantianquce.com/index.php/wetest/entry/index/id/6466";
    var sharewbqz = _host + "/index.php/wetest/entry/index/id/6466";

    function attention_wx() {
        // alert("");
        // location.href = '';
    }

    function attention_wx2() {
        // alert("");
        // location.href = '';
    }

    function aboutUS() {
        location.href = '';
    }
    function moreGame() {
        location.href = "/index.php/wetest/index/index";
    }
    function shareCallBack() {
        ajaxGet("/index.php/wetest/entry/incshare/mid/" + baseInfo.id);
        /*wqa.sendAction(110, 'sharewx',baseInfo.id);*/
        attention_wx2();    }

    shareData = {
        title: '我参加了“' + baseInfo.title + '”测试，你也快来测测',
        desc: "微信中好玩有趣的测试平台-【趣测】",
        link: share_url,
        imgUrl: baseInfo.shareImg,
        trigger: shareData.trigger,
        success: function() {
            shareCallBack();
        }
    };

    var sinaUrl = 'http://service.weibo.com/share/share.php?';
    var qzoneUrl = 'http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?';
    var shareConfig = {
        url: sharewbqz,
        title: '我参加了“' + baseInfo.title + '”测试，你也快来测测',
        desc: "",
        pic: baseInfo.shareImg,
        pics: baseInfo.shareImg,
        summary: '',
        site: ''
    }

    function diySerialize(obj, from) {
        obj.url += '/from/' + from;
        if(from == 'wb')
        {
            obj.title ="@趣测 "+ obj.title+ "✌戳这里你也快去测测👉👉";
        }
        var str = "";
        for (var prop in obj) {
            var temp = encodeURIComponent(obj[prop]);
            str += prop + "=" + temp + "&"
        }
        return str;
    }
</script>
<!-- menu -->

<script>
    function pushHistory() {

        var state = {
            title: document.title,
            url: location.href
        };
        window.history.pushState(state, document.title, location.href);

    }
    // cancel exit
    if("0" == 0){
        window.addEventListener("popstate", function(e) {

            if (typeof(MtaH5) != 'undefined') {
                MtaH5.clickStat("backup_show");
            }
            window.location.href = "/index.php/wetest/index/index/src/113";
        })
        pushHistory();
    }
</script>



<script>
    if("0" == 0){
        var _mtac = {};
        (function() {
            var mta = document.createElement("script");
            mta.src = "http://pingjs.qq.com/h5/stats.js?v2.0.4";
            mta.setAttribute("name", "MTAH5");
            mta.setAttribute("sid", "500148432");
            mta.setAttribute("cid", "500492808");
            var s = document.getElementsByTagName("script")[0];
            s.parentNode.insertBefore(mta, s);
        })();
    }
</script>
</body></html>